Running two Tomcats; refactoring