code: public boolean isCommandAllowed(Database database, String classname, String cmd)
              throws DevFailed {
          if (database.getAccess_proxy()==null) {
              if (!database.isAccess_checked())
                  checkAccess(database);
              return !database.check_access;
          } else
              return database.getAccess_proxy().isCommandAllowed(classname, cmd);
      }
docs: ===================================================================