/**
  * Dynamically write javascript code to declare variables to fill the ExtJS panels
  *
  * @param out
  * @param key
  */
 public void printGridDataJSON(JspWriter out) {
   try {
     String output = "var gridColumns = new Object();\n";
     output += "var gridFields = new Object();\n";
     output += "var gridSorters = new Object();\n";
     output += "var gridName = new Object();\n";
     out.print(output);
     computeGrid(NodeHelper.computeListOfAttributes(theNode), theNode, out);
   } catch (IOException e) {
     e.printStackTrace();
   }
 }
 public String getCommentsVariable(String varName) {
   return "var " + varName + " = " + NodeHelper.getComments(theNode) + ";\n";
 }