Refs #4439 Registering the callback in the frontcontroller and using a static method rather than a closure