Changed ByteSerializer to abstract class.