Refactoring Tomcat to use Attributes