try {
refererSAML =
ValveUtils.getGSAHost("", valveConf, cookies, valveConf.getRefererCookieName());
SAMLAuthN samlAuthN = new SAMLAuthN();
String redirectURL =
samlAuthN.redirectLocation(refererSAML, relayState, artifact);
logger.debug("SAML:Redirecting to " + redirectURL);
response.sendRedirect(redirectURL);
} catch (ValveConfigurationException e) {
logger.error ("Configuration error: "+ e.getMessage(),e);
response.sendError(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);