if (contents.size() >= 1)
{
Object rootObject = contents.get(0);
if (rootObject instanceof DataGraphImpl)
{
DataGraphImpl eDataGraph = (DataGraphImpl)rootObject;
EObject result = eDataGraph.getRootResource().getEObject(id);
if (result != null)
{
return result;
}
else
{
ChangeSummary eChangeSummary = eDataGraph.getEChangeSummary();
if (eChangeSummary != null)
{
result = ((EObject)eDataGraph.getChangeSummary()).eResource().getEObject(id);
if (result != null)
{
return result;
}
}