private static TrustManagerFactory trustSelfSignedFactory(TrustManagerFactory trustManagerFactory) {
        final TrustManager[] trustManagers = trustManagerFactory.getTrustManagers();
        if (trustManagers == null) {
            return trustManagerFactory;
        } else {
            final TrustManager[] wrappedTrustManagers = new TrustManager[trustManagers.length];
            for (int i = 0; i < wrappedTrustManagers.length; ++i) {
                final TrustManager trustManager = trustManagers[i];
                if (trustManager instanceof X509TrustManager) {
                    wrappedTrustManagers[i] =
                            new TrustSelfSignedX509TrustManager((X509TrustManager)trustManager);
                }
            }
            return new TrustManagerFactoryWrapper(wrappedTrustManagers);
        }
    }
Adds SSL/TLS context to the specified {@link SslContextBuilder}.
resteasy/src/main/java/com/linecorp/armeria/client/resteasy/SslContextConfigurator.java