EObjectReference ret=null;
if(!(objectReference instanceof StringReference))
ret=new EObjectReference();
else
{
ret=new EStringReference();
((EStringReference)ret).setStringValue(((StringReference)objectReference).value());
}
ret.setReferenceType(createQueryReferenceType(objectReference.referenceType()));
ret.setUniqueId(objectReference.uniqueID());