public static Map < String , String > fromProperties ( final Properties props ) { Map < String , String > propMap = new HashMap < String , String > ( ) ; for ( Enumeration < ? > e = props . propertyNames ( ) ; e . hasMoreElements ( ) ; ) { String key = ( String ) e . nextElement ( ) ; propMap . put ( key , props . getProperty ( key ) ) ; } return Collections . unmodifiableMap ( propMap ) ; }
Converts properties to a String - String map