XSS Vulnerability fix in SharedContextRestController