Majority — Reed J.
delivered the opinion of the Court.
The Boston and Providence Railroad Corporation in 1888 leased its property, a line of road running between Boston and Providence, for 99 years to the Old Colony Railroad. It has continued as a separate corporation, receiving and distributing its rent, and is not a subsidiary or affiliate of the New Haven or the Old Colony. In 1899 the Old Colony leased its lines, including its leasehold in the Boston and Providence, to the New York, New Haven and Hartford Railroad for 99 years. The New Haven operated its own and the leased property until it was put into reorganization under § 77 of the Bankruptcy Act[1] in the District Court of Connecticut on October 23, 1935. The trustees of the New Haven operated the Old Colony under the lease until they rejected the lease by order of the court on June 2, 1936. Next day the Old Colony filed under § 77 in the same Connecticut court as a subsidiary debtor, the court appointed the trustees of the New Haven trustees of the Old Colony, and on June 18, 1936, the court ordered the New Haven trustees to continue to operate the Old Colony as an integral part of the New Haven, the operation being for the account of the Old Colony. The order provided that, in the event leases of the Old Colony were later rejected, payments for operating the leased property and payments of rent under the lease would be deemed to have been for the account of the lessor and could be recovered from the
1 11 U. S. C. § 205 .
The obligation on which the claimed lien is based arises, so the trustees of the New Haven and the Old Colony contend, from the operation of the Boston and Providence under § 77 (c) (6) by the Old Colony for the account of the Boston and Providence. Petitioners deny that 77 (c) (6) was properly invoked and claim that the deficit is not chargeable to them. This phase of the contro
2 108 F. 2d 164 .
The controversy has substance because of the contention of the trustees for the Boston and Providence that, as the court charged with the reorganization of that road (the Massachusetts District Court) has “exclusive jurisdiction” under § 77 (a) “of the debtor and its property wherever located,” the Connecticut court cannot consider the claims of the New Haven and Old Colony trustees for operating deficits or impose a lien on the Boston and Providence property to secure them.
The lease of the Boston and Providence to the Old Colony is the type of lease covered by the order of June 18,1936, by which the trustees of Old Colony were authorized to charge operating deficits against the lessor in the event of subsequent disaffirmance of the lease.
Railroad reorganization in bankruptcy is a field completely within the ambit of the bankruptcy powers of Congress.[3] Under the commerce clause of the Constitution Congress likewise has exercised its power to provide for the continued operation of interstate railroads such as petitioner.[4] The fact that the operator operates under a
3 Continental Bank v. Chicago, R. I. & P. Ry. Co., 294 U. S. 648 , 667-675.
4 Interstate Commerce Act, § 1 (18), as amended 49 U. S. C. § 1 (18): “Extension or abandonment of lines; certificate required.— . . and no carrier by railroad subject to this chapter shall abandon all or any portion of a line of railroad, or the operation thereof, *138 unless and until there shall first have been obtained from the commission a certificate that the present or future public convenience and necessity permit of such abandonment.”
The property of the Boston and Providence came into the possession of the trustees of the New Haven and the Old Colony and remained there during the entire time covered by the claim. These roads were lessees of the property and debtors under § 77 in the Connecticut court. It is immaterial what title the debtors had, whether a lease or a fee. The physical property covered by the lease
5 Cf. Seaboard Air Line Railways Receivers Proposed Abandonment, 202 I. C. C. 543 ; Norfolk Southern R. Co. Receivers Abandonment, 221 I. C. C. 258 ; Meek and Masten, Railroad Leases and Reorganization: I, 49 Yale L. J. 626 .
6 Palmer v. Massachusetts, 308 U. S. 79 , 87, note 14.
7 § 77 (c) (6). “If a lease of a line of railroad is rejected, and if the lessee, with the approval of the judge, shall elect no longer to operate the leased line, it shall be the duty of the lessor at the end of a period to be fixed by the judge to begin the operation of such line, unless the judge, upon the petition of the lessor, shall decree after hearing that it would be impracticable and contrary to the public interest for the lessor to operate the said line, in which event it shaE be the duty of the lessee to continue operation on or for the account of the lessor until the abandonment of such line is authorized by the Commission in accordance with the provisions of section 1 of the Interstate Commerce Act as amended.”
This Court has held “upon principles of general application” that courts having custody of property or a fund have the power “to require that expenses which have contributed either to the preservation or creation of the fund in its custody shall be paid before a general disposition among those entitled to receive it.”[10] Such a power reposes in any court charged with custody of property. It is an in rem jurisdiction springing from possession of the property which is necessary in order that the court may adequately care for the property. Thus a court having custody of a ship is able to secure wharfage by virtue of its power to decree a preferential payment.[11] And here the court is able to carry out the operation of the Boston and Providence by promising or granting a lien to those who carry out the operation.
8 Thompson v. Magnolia Petroleum Co., 309 U. S. 478 ; Ex parte Baldwin, 291 U. S. 610 ; cf. Isaacs v. Hobbs Tie & T. Co., 282 U. S. 734 ; Green v. Finnegan Realty Co., 70 F. 2d 465 , 466 (C. C. A. 5th); In re Chambers, Calder & Co., 98 F. 865 (D. R. I.).
9 § 77 (c) (10). “The judge may direct the debtor or the trustee or trustees to keep such records and accounts, in addition to the accounts prescribed by the Commission, as will permit of such a segregation and allocation, as the necessities of the case may require, of the earnings and expenses between and to the divisions and parts of the railroad or other property of the debtor which are separately subject to the liens of the various mortgages or deeds of trust, or are separately subject to lease, and may refer to the Commission for its recommendations after hearings thereon if the parties shall so request and/or the Commission determine necessary or desirable, as to the method or formula by which such segregation and allocation shall be made; and thereafter such segregation and allocation may be made at the expense of the debtor’s estate.” See note 7.
10 New York Dock Co. v. The Poznan, 274 U. S. 117 , 120, 121.
11 Ibid.
12 It may be noted that Congress did not adopt the rule of Gross v. Irving Trust Co., 289 U. S. 342 , in this situation. In the Gross case property of a debtor had been in the custody of a state receivership court prior to the debtor’s adjudication in ordinary bankruptcy. It was held that because of the bankruptcy court’s paramount jurisdiction the administrative expenses of the receivership had to be proved in bankruptcy and could not be declared a lien by the receivership court on property in its custody.
13 §77 (e).
Affirmed.