servicesInjector.setContainer(container);
persistenceSessionProxy = new PersistenceSessionProxy(mockPersistenceSessionFactory, adapterFactory, objectFactory, servicesInjector, oidGenerator, adapterManager, mockDistribution, mockEncoder);
persistenceSessionProxy.setSpecificationLoader(system.getReflector());
transactionManager = new ClientSideTransactionManager(adapterManager, persistenceSessionProxy, mockDistribution, mockEncoder);
transactionManager.injectInto(persistenceSessionProxy);
session = IsisContext.getAuthenticationSession();
system.setPersistenceSession(persistenceSessionProxy);