Reduce publicly exposed API in Tomcat