Here you can find the source of loadPropertiesFile(String propertiesFileName)
@SuppressWarnings("unchecked") static Map<String, String> loadPropertiesFile(String propertiesFileName) throws IOException
//package com.java2s; //License from project: Apache License import java.io.*; import java.util.Map; import java.util.Properties; public class Main { @SuppressWarnings("unchecked") static Map<String, String> loadPropertiesFile(String propertiesFileName) throws IOException { Properties properties = new Properties(); properties.load(new FileInputStream(propertiesFileName)); return (Map) properties; }/* w ww. ja v a 2 s.c o m*/ }