Notwithstanding sections 40E to 40J, inclusive, of chapter 7 of the General Laws or any other general or special law to the contrary and in further consideration for the conveyance authorized in section 1, the commissioner of capital asset management and maintenance shall, subject to such terms and conditions as he may prescribe, transfer to the department of agricultural resources to be used for