try
{
String srcAbsPath = ctx.getParameter(0);
String destAbsPath = ctx.getParameter(1);
Workspace workspace = ctx.getSession().getWorkspace();
workspace.move(srcAbsPath, destAbsPath);
output = "Node [" + srcAbsPath + "] has been moved to [" + destAbsPath + "] successfully \n";
}
catch (Exception e)
{
output = "Can't execute command - " + e.getMessage() + "\n";