public static <T extends SerializableEntity>Deserializer roundtripSerializableEntityWithBinarySerializer(final T originalEntity,final AccountLookup accountLookup){
  final BinarySerializer binarySerializer=new BinarySerializer();
  originalEntity.serialize(binarySerializer);
  return new BinaryDeserializer(binarySerializer.getBytes(),new DeserializationContext(accountLookup));
}

public static < T extends SerializableEntity > Deserializer roundtripSerializableEntityWithBinarySerializer ( final T originalEntity , final AccountLookup accountLookup ) { final BinarySerializer binarySerializer = new BinarySerializer ( ) ; originalEntity . serialize ( binarySerializer ) ; return new BinaryDeserializer ( binarySerializer . getBytes ( ) , new DeserializationContext ( accountLookup ) ) ; }
serializes originalentity and returns a binary deserializer that can deserialize it .
