Add a hook for custom code into report message controller