code: public static <UK, UV> Map<UK, UV> deserializeMap(byte[] serializedValue, TypeSerializer<UK> keySerializer, TypeSerializer<UV> valueSerializer) throws IOException {
  		if (serializedValue != null) {
  			DataInputDeserializer in = new DataInputDeserializer(serializedValue, 0, serializedValue.length);
  
  			Map<UK, UV> result = new HashMap<>();
  			while (in.available() > 0) {
  				UK key = keySerializer.deserialize(in);
  
  				boolean isNull = in.readBoolean();
  				UV value = isNull ? null : valueSerializer.deserialize(in);
  
  				result.put(key, value);
  			}
  
  			return result;
  		} else {
  			return null;
  		}
  	}
docs: Deserializes all kv pairs with the given serializer.
  
  @param serializedValue Serialized value of type Map&lt;UK, UV&gt;
  @param keySerializer   Serializer for UK
  @param valueSerializer Serializer for UV
  @param <UK>            Type of the key
  @param <UV>            Type of the value.
  @return Deserialized map or <code>null</code> if the serialized value
  is <code>null</code>
  @throws IOException On failure during deserialization