Akka java code