cleaning some code in Application.java