WICKET-5079 improved application context handling