sslReq.getTrustStore().getKeyStore();
final KeyStore keyStore = sslReq.getKeyStore() == null?
null:
sslReq.getKeyStore().getKeyStore();
final TrustStrategy trustStrategy = sslReq.isTrustSelfSignedCert()
? new TrustSelfSignedStrategy(): null;
SSLContext ctx = new SSLContextBuilder()
.loadKeyMaterial(keyStore, sslReq.getKeyStore()!=null? sslReq.getKeyStore().getPassword(): null)
.loadTrustMaterial(trustStore, trustStrategy)