private static SSLContext createEasySSLContext() throws IOException { try { SSLContext context = SSLContext.getInstance( "SSL" ); context.init( null, new TrustManager[]{new EasyX509TrustManager( null )}, null ); return context; } catch ( Exception e ) { LoggerFactory.getLogger( EasySSLSocketFactory.class ).error( e.getMessage(), e ); throw new IOException( e.getMessage() ); } }