Because Play is a web application framework, most of the application logic is done by controllers responding to HTTP requests. But sometimes you will need to execute some application logic outside of any HTTP request. It can be useful for initializat…