Buggy code:
public class RestletComponent extends HeaderFilterStrategyComponent implements RestConsumerFactory { private static final Logger LOG = LoggerFactory . getLogger ( RestletComponent . class ) ; private final Map < String , Server > servers = new HashMap < String , Server > ( ) ; private final Map < String , MethodBasedRouter > routers = new HashMap < String , MethodBasedRouter > ( ) ; private final Component component ; private Boolean controllerDaemon ; private Integer controllerSleepTimeMs ; private Integer inboundBufferSize ; private Integer minThreads ; private Integer maxThreads ; private Integer lowThreads ; private Integer maxConnectionsPerHost ; private Integer maxTotalConnections ; private Integer outboundBufferSize ; private Integer maxQueued ; private Boolean persistingConnections ; private Boolean pipeliningConnections ; private Integer threadMaxIdleTimeMs ; private Boolean useForwardedForHeader ; private Boolean reuseAddress ; private boolean disableStreamCache ; private int port ; public RestletComponent ( ) { } public RestletComponent ( Component component ) { } @ Override protected Endpoint createEndpoint ( String uri , String remaining , Map < String , Object > parameters ) throws Exception { } @ Override protected void doStart ( ) throws Exception { } @ Override protected void doStop ( ) throws Exception { } @ Override protected boolean useIntrospectionOnEndpoint ( ) { } public void connect ( RestletConsumer consumer ) throws Exception { } public void disconnect ( RestletConsumer consumer ) throws Exception { } private MethodBasedRouter getMethodRouter ( String uriPattern , boolean addIfEmpty ) { } protected Server createServer ( RestletEndpoint endpoint ) { } protected String stringArrayToString ( String [ ] strings ) { } protected void setupServerWithSSLContext ( Series < Parameter > params , SSLContextParameters scp ) throws IOException , GeneralSecurityException { } protected void addServerIfNecessary ( RestletEndpoint endpoint ) throws Exception { String key = RestletComponent . buildKey ( endpoint ) ; Server server ; synchronized ( servers ) { server = servers . get ( key ) ; if ( server == null ) { server = createServer ( endpoint ) ; component . getServers ( ) . add ( server ) ; Series < Parameter > params = server . getContext ( ) . getParameters ( ) ; <START_BUG> if ( endpoint . getProtocol ( ) . equals ( "https" ) ) { <END_BUG> SSLContextParameters scp = endpoint . getSslContextParameters ( ) ; if ( ( endpoint . getSslContextParameters ( ) ) == null ) { throw new InvalidParameterException ( "Need<seq2seq4repair_space>to<seq2seq4repair_space>specify<seq2seq4repair_space>the<seq2seq4repair_space>SSLContextParameters<seq2seq4repair_space>option<seq2seq4repair_space>here!" ) ; } setupServerWithSSLContext ( params , scp ) ; } if ( ( getControllerDaemon ( ) ) != null ) { params . add ( "controllerDaemon" , getControllerDaemon ( ) . toString ( ) ) ; } if ( ( getControllerSleepTimeMs ( ) ) != null ) { params . add ( "controllerSleepTimeMs" , getControllerSleepTimeMs ( ) . toString ( ) ) ; } if ( ( getInboundBufferSize ( ) ) != null ) { params . add ( "inboundBufferSize" , getInboundBufferSize ( ) . toString ( ) ) ; } if ( ( getMinThreads ( ) ) != null ) { params . add ( "minThreads" , getMinThreads ( ) . toString ( ) ) ; } if ( ( getMaxThreads ( ) ) != null ) { params . add ( "maxThreads" , getMaxThreads ( ) . toString ( ) ) ; } if ( ( getLowThreads ( ) ) != null ) { params . add ( "lowThreads" , getLowThreads ( ) . toString ( ) ) ; } if ( ( getMaxQueued ( ) ) != null ) { params . add ( "maxQueued" , getMaxQueued ( ) . toString ( ) ) ; } if ( ( getMaxConnectionsPerHost ( ) ) != null ) { params . add ( "maxConnectionsPerHost" , getMaxConnectionsPerHost ( ) . toString ( ) ) ; } if ( ( getMaxTotalConnections ( ) ) != null ) { params . add ( "maxTotalConnections" , getMaxTotalConnections ( ) . toString ( ) ) ; } if ( ( getOutboundBufferSize ( ) ) != null ) { params . add ( "outboundBufferSize" , getOutboundBufferSize ( ) . toString ( ) ) ; } if ( ( getPersistingConnections ( ) ) != null ) { params . add ( "persistingConnections" , getPersistingConnections ( ) . toString ( ) ) ; } if ( ( getPipeliningConnections ( ) ) != null ) { params . add ( "pipeliningConnections" , getPipeliningConnections ( ) . toString ( ) ) ; } if ( ( getThreadMaxIdleTimeMs ( ) ) != null ) { params . add ( "threadMaxIdleTimeMs" , getThreadMaxIdleTimeMs ( ) . toString ( ) ) ; } if ( ( getUseForwardedForHeader ( ) ) != null ) { params . add ( "useForwardedForHeader" , getUseForwardedForHeader ( ) . toString ( ) ) ; } if ( ( getReuseAddress ( ) ) != null ) { params . add ( "reuseAddress" , getReuseAddress ( ) . toString ( ) ) ; } RestletComponent . LOG . debug ( "Setting<seq2seq4repair_space>parameters:<seq2seq4repair_space>{}<seq2seq4repair_space>to<seq2seq4repair_space>server:<seq2seq4repair_space>{}" , params , server ) ; server . getContext ( ) . setParameters ( params ) ; servers . put ( key , server ) ; RestletComponent . LOG . debug ( "Added<seq2seq4repair_space>server:<seq2seq4repair_space>{}" , key ) ; server . start ( ) ; } } } private static String buildKey ( RestletEndpoint endpoint ) { } private void attachUriPatternToRestlet ( String offsetPath , String uriPattern , RestletEndpoint endpoint , Restlet target ) throws Exception { } private void deattachUriPatternFrimRestlet ( String uriPattern , RestletEndpoint endpoint , Restlet target ) throws Exception { } @ Deprecated protected String preProcessUri ( String uri ) { } private static String decodePattern ( String pattern ) { } public Boolean getControllerDaemon ( ) { } public void setControllerDaemon ( Boolean controllerDaemon ) { } public Integer getControllerSleepTimeMs ( ) { } public void setControllerSleepTimeMs ( Integer controllerSleepTimeMs ) { } public Integer getInboundBufferSize ( ) { } public void setInboundBufferSize ( Integer inboundBufferSize ) { } public Integer getMaxConnectionsPerHost ( ) { } public void setMaxConnectionsPerHost ( Integer maxConnectionsPerHost ) { }

Fix:
if ( "https" . equals ( endpoint . getProtocol ( ) ) ) {