SerializerWithStringManifest with ByteBufferSerializerbut the hint found in the javadoc to do so https://github.com/akka/akka/blob/master/akka-actor/src/main/scala/akka/serialization/Serializer.scala#L157 points me to a
private[akka]class that I cannot use, so I don't know how to implement the
override def toBinary(o: AnyRef): Array[Byte]method :(
Ran into this issue due to a runtime conflict between Netty as used by Play! 2.5 and Netty as used by ElasticSearch 5.1
see my summary here
Refactored the code to multi-modules like in https://github.com/adrianhurt/play-multidomain-seed in order to isolate ES code to a module.
But cannot find a way to run the ES module in a separate classloader so it does not conflict with Play.
.takeWhile(p: A => Boolean), except it would be inclusive, not exclusive