public Map<String, String> propertiesToMap(String propertiesFilePath){
Properties properties=new Properties();
try {
properties.load(new FileInputStream(propertiesFilePath));
} catch (IOException e) {
e.printStackTrace();
}
Set<Object> keys=properties.keySet();
Map<String, String> map=new HashMap<String, String>();
for (Object k : keys) {
map.put((String)k, (String)properties.get(k));
}
return map;
}