createPersistenceSession(persistenceSessionFactory, adapterManager, adapterFactory, objectFactory,
oidGenerator, servicesInjector);
if (getConfiguration().getBoolean(LOGGING_PROPERTY, false)) {
final String level = getConfiguration().getString(LOGGING_PROPERTY + ".level", "debug");
persistenceSession = new PersistenceSessionLogger(persistenceSession, level);
}
return persistenceSession;
}