mapping = new Mapping( loader );
if ( resolver != null )
mapping.setEntityResolver( resolver );
if ( source.getSystemId() != null )
mapping.setBaseURL( source.getSystemId() );
mappings = database.enumerateMapping();
while ( mappings.hasMoreElements() )
mapping.loadMapping( ( (org.exolab.castor.jdo.conf.Mapping) mappings.nextElement() ).getHref() );
if ( database.getDriver() != null ) {
// JDO configuration file specifies a driver, use the driver