add the code in tomcat