refactoring ConfigFile.java