MappedStoreManager storeMgr = (MappedStoreManager)om.getStoreManager();
DatastoreAdapter dba = storeMgr.getDatastoreAdapter();
candidateCmd = om.getMetaDataManager().getMetaDataForClass(candidateClass,om.getClassLoaderResolver());
if (candidateCmd == null)
{
throw new ClassNotPersistenceCapableException(candidateClass.getName());
}
if (candidateCmd.getPersistenceCapableSuperclass() != null)
{
throw new PersistentSuperclassNotAllowedException(candidateClass.getName());
}