https://github.com/l0rdn1kk0n/wicket-bootstrap/issues/365 - Extract the method as a utility