Got the demo working as testcase for secure tomcat