GeoServer code working without the legacy code