Resource result = new Ecore2EcoreResourceImpl(uri);
XMIResource result = new Ecore2EcoreResourceImpl(uri); result.setEncoding("UTF-8");
  public Resource createResource(URI uri)  {    Resource result = new Ecore2EcoreResourceImpl(uri);    return result;  }