throw new CdoException("No provider specified for CDO unit '" + cdoUnit.getName() + "'.");
}
if (!CdoDatastoreProvider.class.isAssignableFrom(providerType)) {
throw new CdoException(providerType.getName() + " specified as CDO provider must implement " + CdoDatastoreProvider.class.getName());
}
CdoDatastoreProvider cdoDatastoreProvider = CdoDatastoreProvider.class.cast(ClassHelper.newInstance(providerType));
Datastore<?, ?, ?> datastore = cdoDatastoreProvider.createDatastore(cdoUnit);
return new CdoManagerFactoryImpl(cdoUnit, datastore);
}