extract akka example code from scala doc