resource = registry.get(path);
resource.addProperty(RegistryConstants.REGISTRY_EXISTING_RESOURCE, "true");
} else {
resource = new CollectionImpl();
}
resource.addProperty(RegistryConstants.REGISTRY_NON_RECURSIVE, "true");
resource.addProperty(RegistryConstants.REGISTRY_LINK_RESTORATION,
path + RegistryConstants.URL_SEPARATOR + target +
RegistryConstants.URL_SEPARATOR + targetSubPath +
RegistryConstants.URL_SEPARATOR + CurrentSession.getUser());
registry.put(path, resource);