In 1864 the island was split between the NSW Department of Prisons and the Public Works Department . The dockyard was made larger taking up most of foreshores . In 1864 the island was split between the NSW Department of Prisons and the Public Works Department , who expanded the dockyard around the foreshores .