squash deprecation warning in tomcat role