A new look at Mackey's imprimitivity theorem