JavaPackage.eINSTANCE.init();
PersistenceBackendFactoryRegistry.register(
BlueprintsURI.SCHEME,
BlueprintsPersistenceBackendFactory.getInstance()); (1)
ResourceSet resourceSet = new ResourceSetImpl();
resourceSet.getResourceFactoryRegistry().getProtocolToFactoryMap()
.put(BlueprintsURI.SCHEME,
PersistentResourceFactory.getInstance()); (2)
URI uri = BlueprintsURI.createFileURI(new File("<db_path>")); (3)
Resource resource = resourceSet.createResource(uri); (4)