code: boolean isCommandAllowed(String classname, String cmd) {
          String[] allowed = allowed_cmd_table.get(classname);
  
          //	Check if allowed commands already read
          if (allowed == null)
              allowed = getAllowedCommands(classname);
  
          //	If no cmd allowed returns false
          if (allowed.length == 0)
              return false;
  
          //	Else, check is specified one is allowed
          for (String anAllowed : allowed)
              if (anAllowed.toLowerCase().equals(cmd.toLowerCase()))
                  return true;
          return false;
      }
docs: ===============================================================