public static MultiMapConfig createConfig(CollectionProxyId proxyId) {
   switch (proxyId.getType()) {
     case MULTI_MAP:
       return new MultiMapConfig().setName(proxyId.getName());
     case LIST:
       return new MultiMapConfig()
           .setName(COLLECTION_LIST_NAME + proxyId.getKeyName())
           .setValueCollectionType(MultiMapConfig.ValueCollectionType.LIST);
     case SET:
       return new MultiMapConfig()
           .setName(COLLECTION_SET_NAME + proxyId.getKeyName())
           .setValueCollectionType(MultiMapConfig.ValueCollectionType.SET);
     default:
       throw new IllegalArgumentException("Illegal proxy type: " + proxyId.getType());
   }
 }
 public String getName() {
   return proxyId.getName();
 }