{
if (log.isDebugEnabled()) log.debug("Instantiate PersistenceBrokerFactory");
Class pbfClass = null;
try
{
Configurator configurator = OjbConfigurator.getInstance();
Configuration config = configurator.getConfigurationFor(null);
pbfClass = config.getClass(PBF_KEY, null);
if(pbfClass == null)
{
log.error("Creation of PersistenceBrokerFactory (PBF) instance failed, can't get PBF class object");
throw new OJBRuntimeException("Property for key '" + PBF_KEY + "' can not be found in properties file");
}
PersistenceBrokerFactoryIF result = (PersistenceBrokerFactoryIF) ClassHelper.newInstance(pbfClass);
configurator.configure(result);
log.info("PersistencebrokerFactory class instantiated: " + result);
return result;
}
catch (Exception e)
{