public static Object createCollectionKey(CollectionProxyId proxyId) {
   String name = proxyId.getKeyName();
   String baseName = PartitionKeyUtil.getBaseName(name);
   return name.equals(baseName)
       ? name
       : new PartitionAwareKey(baseName, PartitionKeyUtil.getPartitionKey(name));
 }
 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());
   }
 }