example code for akka singleton mode