private Response extractSamlResponse(HttpServletRequest request) {
SAMLMessageContext messageContext;
final SAMLMessageHandler samlMessageHandler = openSAMLContext.samlMessageHandler();
try {
messageContext = samlMessageHandler.extractSAMLMessageContext(request);
} catch (MessageDecodingException me) {
throw new ServiceProviderAuthenticationException("Could not decode SAML Response", me);
} catch (org.opensaml.xml.security.SecurityException se) {
throw new ServiceProviderAuthenticationException("Could not decode SAML Response", se);
}