docs: private static String getXForwardedHeader(StaplerRequest req, String header, String defaultValue) {
          String value = req.getHeader(header);
          if (value != null) {
              int index = value.indexOf(',');
              return index == -1 ? value.trim() : value.substring(0,index).trim();
          }
          return defaultValue;
      }