protected PersistenceSession createPersistenceSession(final PersistenceSessionFactory persistenceSessionFactory,
final AdapterManagerExtended adapterManager, final ObjectAdapterFactory adapterFactory,
final ObjectFactory objectFactory, final OidGenerator oidGenerator, final ServicesInjector servicesInjector) {
final PersistAlgorithm persistAlgorithm = createPersistAlgorithm(getConfiguration());
ObjectStore objectStore = createObjectStore(getConfiguration(), adapterFactory, adapterManager);
ensureThatArg(persistAlgorithm, is(not(nullValue())));
ensureThatArg(objectStore, is(not(nullValue())));
if (getConfiguration().getBoolean(LOGGING_PROPERTY, false)) {