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