public Node getNode() {
   if (node == null) {
     node = context.getAttribute("currentNode", Node.class);
     if (node == null) {
       node = getResource().getNode();
     }
   }
   return node;
 }
 /** Returns the handle to the 'Sling world' and all available services. */
 public SlingScriptHelper getSling() {
   if (sling == null) {
     sling = context.getAttribute("sling", SlingScriptHelper.class);
   }
   return sling;
 }