A "hierarchical" map in Java