BasicDBObject dbObject = new BasicDBObject(2);
dbObject.put(Keywords.PROXY_KEY, uriHandler.deresolve(eProxyURI).toString());
dbObject.put(Keywords.ECLASS_KEY, EcoreUtil.getURI(targetObject.eClass()).toString());
return dbObject;
}
else if (!eReference.isContainment() || (eReference.isResolveProxies() && internalEObject.eDirectResource() != null))
{
// Cross-document containment, or non-containment reference - build a proxy
BasicDBObject dbObject = new BasicDBObject(2);
dbObject.put(Keywords.PROXY_KEY, uriHandler.deresolve(EcoreUtil.getURI(targetObject)).toString());