Resource resource = resourceSet.createResource(URI.createURI("all.datagraph"));
HashMap map = null;
if(objectInput instanceof SDOObjectInputStream)
{
TypeHelperImpl th = (TypeHelperImpl)((SDOObjectInputStream)objectInput).getHelperContext().getTypeHelper();
map = new HashMap();
map.put("EXTENDED_META_DATA", th.getExtendedMetaData());
}
resource.load(new ByteArrayInputStream(bytes), map);
eDataGraph = (DataGraphImpl)resource.getContents().get(0);
}