make the tomcat servlet thread safe