GlobalContext globalConfiguration, boolean useHostKey) throws GeneralSecurityException,
FileNotFoundException, IOException, XregistryException, GSSException {
String certFile = globalConfiguration.getTrustedCertsFile();
String keyfile = globalConfiguration.getHostcertsKeyFile();
SoapHttpDynamicInfosetInvoker invoker;
if(useHostKey && globalConfiguration.getTrustedCertificates() != null && keyfile != null){
PureTLSContext ctx = new PureTLSContext();
ctx.setTrustedCertificates(globalConfiguration.getTrustedCertificates());
ctx.loadEAYKeyFile(keyfile, "");
SSLPolicyInt policy = new SSLPolicyInt();