protected void collectHttpRequestProperty(final String name, final String value, final Map attributes) {
        if (StringUtils.isNotBlank(value)) {
            val entries = CollectionUtils.wrapArrayList(StringEscapeUtils.escapeHtml4(value));
            attributes.put(HttpServletRequest.class.getName() + '.' + name, entries);
        }
    }
Cleanup the url. Removes jsession ids and query strings.

@param url the url
@return sanitized url.
core/cas-server-core-services-authentication/src/main/java/org/apereo/cas/authentication/principal/AbstractServiceFactory.java