* use cases user do not need to see shared documents and therefore we keep the property set by defualt.
*/
private String userDN;
public DocumentRegistryClient(String registryServiceWsdlUrl) throws XregistryException{
GlobalContext globalContext = new GlobalContext(true);
String trustedCA = System.getProperty("ssl.hostcertsKeyFile");
String hostCert = System.getProperty("ssl.trustedCertsFile");
globalContext.setTrustedCertsFile(trustedCA);
globalContext.setHostcertsKeyFile(hostCert);
WSIFClient client = Utils.createWSIFClient(globalContext, registryServiceWsdlUrl);
proxy = (XregistryPortType)client.generateDynamicStub(XregistryPortType.class);
userDN = globalContext.getUserDN();
System.out.println("Create Stub for "+ registryServiceWsdlUrl + " using "+ userDN);
}