try {
logger.info("Registry URL: "+ registryURL);
return new XregistryServiceWrapper(registryURL,trustedCertFile, gssCredential);
} catch (GfacException e) {
e.printStackTrace();
GfacException error = new GfacException("Failed to create registry Service client using " + registryURL,e,FaultCode.ErrorAtDependentService);
error.addProperty(ErrorCodes.SERVICE_TYPE, ErrorCodes.ServiceType.Registry.toString());
error.addProperty(ErrorCodes.URL_Name, registryURL);
throw error;
}
}