datastore.init(metadataProvider.getRegisteredMetadata());
}
@Override
public CdoManager createCdoManager() {
DatastoreSession datastoreSession = datastore.createSession();
TransactionalCache<?> cache = new TransactionalCache();
InstanceValidator instanceValidator = new InstanceValidator(validatorFactory, cache);
CdoTransactionImpl cdoTransaction = new CdoTransactionImpl(datastoreSession.getDatastoreTransaction());
InterceptorFactory interceptorFactory = new InterceptorFactory(cdoTransaction, defaultTransactionAttribute);
InstanceManager instanceManager = new InstanceManager(metadataProvider, datastoreSession, classLoader, cdoTransaction, cache, interceptorFactory);
// Register default synchronizations.
cdoTransaction.registerDefaultSynchronization(new ValidatorSynchronization(instanceValidator));
cdoTransaction.registerDefaultSynchronization(new CacheSynchronization(instanceManager, cache, datastoreSession));