public SAML2SSOAuthenticationClient(ConfigurationContext ctx, String serverURL, String cookie,
HttpSession session) throws Exception {
this.session = session;
String serviceEPR = serverURL + "SAML2SSOAuthenticationService";
stub = new SAML2SSOAuthenticationServiceStub(ctx, serviceEPR);
ServiceClient client = stub._getServiceClient();
Options options = client.getOptions();
options.setManageSession(true);
if (cookie != null) {
options.setProperty(HTTPConstants.COOKIE_STRING, cookie);