code: public Mode getMode() {
  
          try {
              return Mode.valueOf(m_config.get(ATTR_MODE));
          } catch (Exception e) {
              LOG.error("Error getting letsencrypt mode: " + e.getLocalizedMessage(), e);
              return null;
          }
      }
docs: Gets the configured mode, or null if no mode or an invalid mode have been configured.<p>
  
  @return the mode