Fix FlagPopulator.java

Updated for 1.5.2
Added config integration