code:     private void checkAdmin() {
          final Jenkins jenkins = Jenkins.getInstance(); //Hoping this method doesn't change meaning again
          if (jenkins != null) {
              //If Jenkins is not alive then we are not started, so no unauthorised user might do anything
              jenkins.checkPermission(Jenkins.ADMINISTER);
          }
      }
  
  
      /**
       * Check whether the list of servers contains a GerritServer object of a specific name.
       *
       * @param serverName to check.
       * @return whether the list contains a server with the given name.
       */
  