Please change this to mane a separate instance:

Injection[Any, ByteBuffer]

I don't see the need to put fromInputStream on KryoInjection.

You can put it on RichKryo if you really want.