Add support for variable replacements and sections in properties file