title: What is the alternative for Play.application()
body: <p>I am new to Play framework. I wanted to read a file which is in the conf folder. So I used <br><br><code>Play.application().classloader().getResources("Data.json").nextElement().getFile()</code>
  <br><br>
  But I got to know that play.Play is deprecated now. What can I use to read the file. 
  I read <a href="https://www.playframework.com/documentation/2.5.x/Migration25#Deprecated-play.Play-and-play.api.Play-methods" rel="nofollow">this</a> article and can hardly understand what it says.</p>