Morita equivalence and duality