}
if (emd != null) {
DatastoreTable parentTable = getStoreManager().getDatastoreClass(getClassMetaData().getFullClassName(), clr);
AbstractMemberMetaData parentField = (AbstractMemberMetaData) emd.getParent();
EmbeddedMapping embeddedMapping =
(EmbeddedMapping) parentTable.getMappingForFullFieldName(parentField.getFullFieldName());
// Build a map that takes us from full field name to member meta data.
// The member meta data in this map comes from the embedded mapping,
// which means it will have subclass fields and column overrides.
Map<String, AbstractMemberMetaData> embeddedMetaDataByFullFieldName = Utils.newHashMap();
int numMappings = embeddedMapping.getNumberOfJavaTypeMappings();
for (int i = 0; i < numMappings; i++) {
JavaTypeMapping fieldMapping = embeddedMapping.getJavaTypeMapping(i);
AbstractMemberMetaData ammd = fieldMapping.getMemberMetaData();
embeddedMetaDataByFullFieldName.put(ammd.getFullFieldName(), ammd);
}
// We're going to update the consumer's map so make a copy over which we