; (3) in subsection (g)— (A) by striking chapter 7 of this title and inserting chapter 7 or 10 of this title ; and (B) by striking section 701 of this title and inserting section 701 or 1003 of this title”; and (4) in subsection (k)(2), by striking the court may enter an order and inserting the court shall enter an order . (j) Appearance by consumer financial protection bureau (1) In general Subchapter I of chapter 3 of title 11, United States Code, is amended by adding at the end the following: 309. Bureau of Consumer Financial Protection appearances in bankruptcy cases Notwithstanding section 1054(e) of the Consumer Financial Protection Act ( 12 U.S.C. 5564(e) ), the Bureau of Consumer Financial Protection may represent itself in its own name and may raise, appear, and be heard on any issue in a case under this title before any court with appropriate jurisdiction. . (2) Conforming amendment The table of sections for chapter 3 of title 11, United States Code, is amended by inserting after the item relating to section 308 the following: 309. Bureau of Consumer Financial Protection appearances in bankruptcy cases. . (k) Eligibility To serve as trustee Section 321(a) of title 11, United States Code, is amended by striking under chapter 7, 12, or 13 of this title, each place it appears and inserting under chapter 7, 10, or 12 of this title, . (l) Qualification of trustee Section 322(a) of title 11, United States Code, is amended by striking 701, 702, 703, 1104, 1163, 1183, 1202, or 1302 and inserting 701, 702, 703, 1001, 1104, 1163, 1183, or 1202 . (m) Limitation on compensation of trustee Section 326(b) of title 11, United States Code, is amended— (1) by striking chapter 12 or 13 of this title, and inserting chapter 10 or 12 of this title,