The Wicket DebugBar from wicket-devutils adds a lot of useful information when debugging session / serialization issues. The documentation suggest that it should be added to a base page.
This approach seems to provide very weak support for differentiating between development and production environment. I don’t want wicket-devutils as a production dependency and I most certainly do not want to clutter the code with “if development” branches.
How do “Wicket” people deal with this in real life applications? Are there any established patterns?
http://wicket.apache.org/apidocs/1.4/org/apache/wicket/devutils/debugbar/DebugBar.html
In our case, we only add it when development utilities are enabled.
The dependency is not that big, it is ok for us to let it in our production dependencies.