Thanks for your reply. I'm doing this from a multi-threaded controller, and it's giving me the following error:
Exception in thread "Thread-406" java.lang.RuntimeException: There is no HTTP Context available from here.
at play.mvc.Http$Context.current(Http.java:27)
at play.mvc.Controller.request(Controller.java:28)
at controllers.Application$ProcessWatcher.run(Application.java:328)