log(" Direction: [" + getDirection() + "]");
try {
SiteTree tree = getPublication().getTree(Publication.AUTHORING_AREA);
if (getDirection().equals(UP)) {
tree.moveUp(getDocumentId());
} else if (getDirection().equals(DOWN)) {
tree.moveDown(getDocumentId());
} else {
throw new BuildException(
"The direction in which the node should be moved isn't specified.");