} catch (RegistryException e) {
String errorMsg = "Could not move the resource at "+ sourcePath + " to " + targetPath;
log.error(errorMsg, e);
// rollback
try {
registry.rollbackTransaction();
} catch (RegistryException e1) {
errorMsg = "Failed to rollback moving the resource at " + sourcePath + " to " + targetPath;
log.error(errorMsg, e1);
throw e1;