resourceSet.getURIConverter().getURIMap().put(URI.createURI("http://localhost/junit/"), URI.createURI("mongodb://localhost/junit/"));
System.out.println("Loading data");
long startTime = System.currentTimeMillis();
Resource resultResource = resourceSet.getResource(root.eResource().getURI(), true);
System.out.println("Traversing the object tree");
new TreeVisitor().doSwitch(resultResource.getContents().get(0));
long endTime = System.currentTimeMillis();