getSession().getAttribute(ServerConstants.ADMIN_SERVICE_COOKIE);
try {
ResourceServiceClient client =
new ResourceServiceClient(cookie, config, request.getSession());
client.renameResource(parentPath, oldResourcePath, newName);
} catch (Exception e) {
String msg = "Failed to rename resource " + oldResourcePath +
" to the name " + newName + ". " + e.getMessage();
log.error(msg, e);