getSession().getAttribute(ServerConstants.ADMIN_SERVICE_COOKIE);
try {
ResourceServiceClient client =
new ResourceServiceClient(cookie, config, request.getSession());
client.moveResource(parentPath, oldResourcePath, destinationPath, resourceName);
} catch (Exception e) {
String msg = "Failed to move resource " + oldResourcePath +
" to the path " + destinationPath + ". " + e.getMessage();
log.error(msg, e);