code:     public Api getApi() {
          return new Api(this);
      }
  
      /**
       * Returns the instance of this class.
       * If {@link jenkins.model.Jenkins#getInstance()} isn't available
       * or the plugin class isn't registered null will be returned.
       *
       * @return the instance.
       */
      @CheckForNull
  