UserRegistry registry = initRegistry();
try {
registry.beginTransaction();
registry.move(sourcePath, targetPath);
registry.commitTransaction();
} catch (RegistryException e) {
String errorMsg = "Could not move the resource at "+ sourcePath + " to " + targetPath;
log.error(errorMsg, e);