Yes, I'm going to implement the proposed solution (change the Tomcat detection class and allow the user to specify a concrete Container class via context-param).