If, after notice provided for in § 65-10-105, the principal contractor shall bring suit against the railroad company, the latter may relieve itself by paying into court the amount so claimed, and the person giving such notice shall be summoned to contest the matter with the principal contractor, and such judgment be rendered thereon as the right may appear.
T.C.A. § 65-10-106