Using scala-arm for managing context