Here you can find the source of createMapFromProperties(Properties stringSubstitutionVariables)
public static Map<String, String> createMapFromProperties(Properties stringSubstitutionVariables)
//package com.java2s; /**//from w w w . ja v a 2 s .c o m * Copyright (c) 2005-2011 by Appcelerator, Inc. All Rights Reserved. * Licensed under the terms of the Eclipse Public License (EPL). * Please see the license.txt included with this distribution for details. * Any modifications to this file must keep this entire header intact. */ import java.util.HashMap; import java.util.Map; import java.util.Properties; import java.util.Set; import java.util.Map.Entry; public class Main { public static Map<String, String> createMapFromProperties(Properties stringSubstitutionVariables) { HashMap<String, String> map = new HashMap<String, String>(); Set<Entry<Object, Object>> entrySet = stringSubstitutionVariables.entrySet(); for (Entry<Object, Object> entry : entrySet) { map.put((String) entry.getKey(), (String) entry.getValue()); } return map; } }