}
//JD: NOTE! This method is no longer used on trunk
protected void initialize() {
//load catalog
LegacyCatalogImporter catalogImporter = new LegacyCatalogImporter();
catalogImporter.setResourceLoader(resourceLoader);
Catalog catalog = geoserver.getCatalog();
if(catalog instanceof Wrapper && ((Wrapper) catalog).isWrapperFor(Catalog.class)) {
catalog = ((Wrapper) catalog).unwrap(Catalog.class);
}
catalogImporter.setCatalog(catalog);
try {
catalogImporter.imprt( resourceLoader.getBaseDirectory() );
}
catch(Exception e) {
throw new RuntimeException( e );
}