@Override
 public Set<Entry<K, V>> entrySet() {
   ClientMessage request = ReplicatedMapEntrySetCodec.encodeRequest(getName());
   ClientMessage response = invoke(request);
   ReplicatedMapEntrySetCodec.ResponseParameters result =
       ReplicatedMapEntrySetCodec.decodeResponse(response);
   Set<Entry<K, V>> resultCollection = new HashSet<Entry<K, V>>(result.map.size());
   for (Entry<Data, Data> dataEntry : result.map.entrySet()) {
     K key = toObject(dataEntry.getKey());
     V value = toObject(dataEntry.getValue());
     resultCollection.add(new AbstractMap.SimpleImmutableEntry<K, V>(key, value));
   }
   return resultCollection;
 }
 @Override
 public Set<Entry<K, V>> entrySet() {
   ClientMessage request = ReplicatedMapEntrySetCodec.encodeRequest(name);
   ClientMessage response = invokeOnPartition(request, targetPartitionId);
   ReplicatedMapEntrySetCodec.ResponseParameters result =
       ReplicatedMapEntrySetCodec.decodeResponse(response);
   List<Entry<K, V>> entries = new ArrayList<Entry<K, V>>(result.response.size());
   for (Entry<Data, Data> dataEntry : result.response) {
     K key = toObject(dataEntry.getKey());
     V value = toObject(dataEntry.getValue());
     entries.add(new AbstractMap.SimpleImmutableEntry<K, V>(key, value));
   }
   return new ResultSet<K, V>(entries, IterationType.ENTRY);
 }