public void reload() throws Exception {
// flush caches
reset();
// reload configuration
GeoServerLoaderProxy loader = GeoServerExtensions.bean(GeoServerLoaderProxy.class);
synchronized (org.geoserver.config.GeoServer.CONFIGURATION_LOCK) {
getCatalog().getResourcePool().dispose();
loader.reload();
}
// look for pluggable handlers
for(GeoServerLifecycleHandler handler : GeoServerExtensions.extensions(GeoServerLifecycleHandler.class)) {
try {