Adding a helper method to create AccessDeniedException from the controller