Updated context params code to work with both Tomcat and Jetty