(1) Subject to rules, the owner of any warehoused goods may, with the permission in writing of the Collector of Customs, carry on any manufacturing process or other operations in the warehouse in relation to such goods. (2) Where in the course of any such operation or process there is any waste or refuse the following provisions shall apply...