Any real estate acquired, owned, controlled or occupied by such municipality for the purposes enumerated in section 40:8-2 of this title shall be acquired, owned, controlled and occupied for a public purpose and as a matter of public necessity, and such municipality may acquire property for such purpose or purposes under the power of eminent domain as and for a public necessity.