Sorry but the context is not really clear. Where should it be this code? Are you trying to develop a custom "map" collection? Are you trying to extend/specialize one of the known map collections?