Workaround for issue https://issues.apache.org/jira/browse/WICKET-5248