code: public String[] selectProtocols(String[] enabledProtocols, String[] supportedProtocols) {
          Set<String> selected_protocols = new HashSet<String>();
          
          // Set the starting protocols - either from the included or enabled list
          if (sslConfig.getIncludeProtocols() != null) {
              // Use only the supported included protocols
              for (String protocol : supportedProtocols)
                  if (contains(sslConfig.getIncludeProtocols(), protocol))
                      selected_protocols.add(protocol);
          } else {
              selected_protocols.addAll(Arrays.asList(enabledProtocols));
          }
          
          // Remove any excluded protocols
          if (sslConfig.getExcludeProtocols() != null) {
              selected_protocols.removeAll(Arrays.asList(sslConfig.getExcludeProtocols()));
          }
  
          return selected_protocols.toArray(new String[selected_protocols.size()]);
      }
docs: Select cipher suites to be used by the connector
  based on configured inclusion and exclusion lists
  as well as enabled and supported cipher suite lists.
  @param enabledCipherSuites Array of enabled cipher suites
  @param supportedCipherSuites Array of supported cipher suites
  @return Array of cipher suites to enable