private static void addBeforeSessionHandler(ChannelPipeline pipeline, ChannelHandler handler) {
        final ChannelHandlerContext lastContext = pipeline.lastContext();
        if (lastContext.handler().getClass() == HttpSessionHandler.class) {
            // Get the name of the HttpSessionHandler so that we can put our handlers before it.
            pipeline.addBefore(lastContext.name(), null, handler);
        } else {
            // HttpSessionHandler was not added yet.
            pipeline.addLast(handler);
        }
    }
Configures the specified {@link SslHandler} with common settings.
core/src/main/java/com/linecorp/armeria/client/HttpClientPipelineConfigurator.java