how-tomcat-works