Resource r = new ResourceImpl();
String relativePath = RegistryUtils.getRelativePath(registryContext, path);
r.addProperty("path", relativePath);
r.addProperty("target", target);
r.addProperty("author", author);
r.addProperty("subPath", targetSubPath);
String mountPath = RegistryConstants.LOCAL_REPOSITORY_BASE_PATH +
RegistryConstants.SYSTEM_MOUNT_PATH + "/" +
relativePath.replace("/", "-");
if (!registry.resourceExists(mountPath)) {
registry.put(mountPath, r);