protected Object valueFromStream(final int iIndex) throws IOException {
final OStreamSerializer valueSerializer = ((OMVRBTreeMapProvider<K, V>) treeDataProvider).valueSerializer;
if (valueSerializer instanceof OBinarySerializer)
return ((OBinarySerializer<V>) valueSerializer).deserialize(buffer, serializedValues[iIndex]);
return valueSerializer.fromStream(stream.getAsByteArray(serializedValues[iIndex]));
}
private byte[] convertIntoNewSerializationFormat(byte[] stream) throws IOException {
final OMemoryStream oldStream = new OMemoryStream(stream);