private static void addVariableNodes(
      SimpleTreeNode owner, VariableContext m, Icon icon, int nodetype, int permission) {
    owner.removeAllChildren();

    Iterator it = m.names(nodetype);

    while (it.hasNext()) {
      String element = (String) it.next();

      SimpleTreeNode node =
          createVariableNode(m.getVariable(element), icon, nodetype, permission, element);

      owner.add(node);
    }
  }
 /**
  * DOCUMENT ME!
  *
  * @param varName DOCUMENT ME!
  * @return DOCUMENT ME!
  */
 public Object getVariable(String varName) {
   return vm.getVariable(varName);
 }