if ( f == null ) {
//assume 2.x style
f = resourceLoader.find( "global.xml");
if ( f != null ) {
BufferedInputStream in = new BufferedInputStream( new FileInputStream( f ) );
GeoServerInfoImpl global = (GeoServerInfoImpl) xpf.createXMLPersister().load( in, GeoServerInfo.class );
// fill in default collection values if needed
//JD: this should not be here, it should be moved to a resolve() method
// on GeoServer, like the way the catalog does it
if(global.getMetadata() == null)
global.setMetadata(new MetadataMap());
if(global.getClientProperties() == null)
global.setClientProperties(new HashMap<Object, Object>());
geoServer.setGlobal( global );
}
//load logging
f = resourceLoader.find( "logging.xml" );