*/
protected void prepareDatastoreMapping(ClassLoaderResolver clr)
{
// Either one end of a 1-1 relation, or the N end of a N-1
MappedStoreManager storeMgr = datastoreContainer.getStoreManager();
AbstractClassMetaData refCmd = storeMgr.getOMFContext().getMetaDataManager().getMetaDataForClass(fmd.getType(), clr);
JavaTypeMapping referenceMapping = null;
if (refCmd.getInheritanceMetaData().getStrategyValue() == InheritanceStrategy.SUBCLASS_TABLE)
{
// Find the actual tables storing the other end (can be multiple subclasses)
AbstractClassMetaData[] cmds = storeMgr.getClassesManagingTableForClass(refCmd, clr);
if (cmds != null && cmds.length > 0)
{