Fix removed or deprecated Akka Java API