Fix for starvation issue when running this test under newer JDKs
WICKET-5488: ported wicket-cdi-1.1 to wicket-7