}
if (sslContext == null){
try{
SSLImplementation sslHelper = SSLImplementation.getInstance();
ServerSocketFactory serverSF =
sslHelper.getServerSocketFactory();
serverSF.setAttribute("keystoreType","JKS");
serverSF.setAttribute("keystore",
System.getProperty("javax.net.ssl.keyStore"));
serverSF.setAttribute("truststoreType","JKS");
serverSF.setAttribute("truststore",
System.getProperty("javax.net.ssl.trustStore"));
serverSF.init();
sslContext = serverSF.getSSLContext();
} catch(Throwable ex){
logger.log(Level.FINE,
"SSL not supported.",ex);
}
}