* @return Object of DocumentRegistryClient which have all methods
* @throws XRegistryClientException
*/
public static XRegistryClient CreateMyProxyCredentialRegistryInstance(String myproxyServer, int myproxyPort, String myproxyUsername, String myproxyPassphrase, int myproxyLifetime, String trustedcertsFile, String registryServiceUrl)
throws XRegistryClientException {
ApplicationProperties properties = new ApplicationProperties(myproxyServer, myproxyPort, myproxyUsername, myproxyPassphrase, myproxyLifetime, trustedcertsFile);
XRegistryClient registryClient = new XRegistryClient(properties.getGssCredential(), properties.getCredentials().getTrustedCertificates(),
registryServiceUrl);
return registryClient;
}