final AbstractClassMetaData cmd = sm.getExecutionContext().getMetaDataManager().getMetaDataForClass(mmd.getType(), clr);
final NodeList nList = ((Element) node).getElementsByTagName(mmd.getName());
if (nList.getLength() == 1)
{
Object id = ec.getApiAdapter().getNewApplicationIdentityObjectId(clr.classForName(cmd.getFullClassName()), nList.item(0).getFirstChild().getNodeValue());
Object related = ec.findObject(id, true, true, null);
if (relationType == Relation.ONE_TO_ONE_BI)
{
// Set other side of relation to avoid reloading
ObjectProvider relatedSM = ec.findObjectProvider(related);
AbstractMemberMetaData relatedMmd = mmd.getRelatedMemberMetaDataForObject(clr, sm.getObject(), related);