/** * Gets singleton instance of this class. * @return Singleton instance of this class. */ public static DefaultSecurityProtocols getInstance(){ DefaultSecurityProtocols result = INSTANCE; if(result == null) synchronized (DefaultSecurityProtocols.class){ result = INSTANCE; if(result == null) result = INSTANCE = new DefaultSecurityProtocols(); } return result; } }