code: public static JettyConnector[] parseConnectors(String[] connectors) {
          if (connectors == null) {
              return null;
          }
  
          List<JettyConnector> array = new ArrayList<>();
          for (String coonectorString : connectors) {
              try {
                  array.add(JettyConnector.valueOf(coonectorString));
              } catch (IllegalArgumentException e) {
                  //nothing to do here
              }
  
          }
  
          return !array.isEmpty() ? array.toArray(new JettyConnector[array.size()]) : null;
      }
docs: Parse the given array of String and return an array of {@link JettyConnector}. Invalid entry from input array are ignored, returns <code>null</code> when no value match from
  input array.
  
  @param connectors
  Connector Array
  @return array of {@link JettyConnector} <code>null</code> in case nothing match.