if (findProject(uri) != null) {
// already available!
return findProject(uri);
}
URI projectURI = URI.createURI(uri.toString());
final ProjectRegistry registry = getProjectRegistry();
Resource registryResource = registry.eResource();
if (registryResource == null) {
System.out.println("Registery was unable to load"); //$NON-NLS-1$
throw new Error(Messages.ProjectRegistryImpl_load_error);
}
URI registryURI = registryResource.getURI();
projectURI.deresolve(registryURI, true, true, true);
ResourceSet registeryResourceSet = registryResource.getResourceSet();
Resource projectResource = registeryResourceSet.createResource(projectURI);
try {