Ported to Akka 2.2.1.