IPath registrypath, URI uri) {
IPath oldregistrypath = ProjectPlugin.getPlugin().getStateLocation()
.append("ProjectRegistry"); //$NON-NLS-1$
URI olduri = URI.createURI("file://" + oldregistrypath.toOSString()); //$NON-NLS-1$
if (oldregistrypath.toFile().exists()) {
resourceSet = new ResourceSetImpl();
Resource resource = resourceSet.getResource(olduri, true);
resourceSet.eSetDeliver(false);
projectRegistry = (ProjectRegistry) resource.getContents().get(0);