MX-9 AuthUtil is now a service so can be mocked to return dummy pages in junit tests.
Inlined "common" functions that were only used once