[FrameworkBundle] Added a helper method to create AccessDeniedException