if (!Configurations.containsProperty(BrokerValue.KEY, cp.getProperties())) {
cp.addProperty("openjpa." + BrokerValue.KEY, getDefaultBrokerAlias());
}
// OPENJPA-1491 If running under OSGi, use the Bundle's ClassLoader instead of the application one
BrokerFactory factory;
if (BundleUtils.runningUnderOSGi()) {
factory = getBrokerFactory(cp, poolValue, BundleUtils.getBundleClassLoader());
} else {
factory = getBrokerFactory(cp, poolValue, pui.getClassLoader());
}
OpenJPAConfiguration conf = factory.getConfiguration();
setPersistenceEnvironmentInfo(conf, pui);
_log = conf.getLog(OpenJPAConfiguration.LOG_RUNTIME);
// now we can log any transformer exceptions from above
if (transformerException != null) {
if (_log.isTraceEnabled()) {