}
protected void populateGenericContext(HttpServletRequest request, HttpServletResponse response, SAMLMessageContext context) throws MetadataProviderException {
HttpServletRequestAdapter inTransport = new HttpServletRequestAdapter(request);
HttpServletResponseAdapter outTransport = new HttpServletResponseAdapter(response, request.isSecure());
// Store attribute which cannot be located from InTransport directly
request.setAttribute(org.springframework.security.saml.SAMLConstants.LOCAL_CONTEXT_PATH, request.getContextPath());