static public Map<String,Object> propertiesToMap(Dictionary<?, ?> properties)
    {
        Map<String,Object> map = null;
        if (properties != null)
        {
	        map = new Hashtable<String,Object>();
	        Enumeration<?> keys = properties.keys();
	        while (keys.hasMoreElements())
	        {
	        	Object key = keys.nextElement();
                map.put((String)key, properties.get(key));	            
	        }
        }
        return map;
    }
static public Map < String , Object > propertiesToMap ( Dictionary < ? , ? > properties ) { Map < String , Object > map = null ; if ( properties != null ) { map = new Hashtable < String , Object > ( ) ; Enumeration < ? > keys = properties . keys ( ) ; while ( keys . hasMoreElements ( ) ) { Object key = keys . nextElement ( ) ; map . put ( ( String ) key , properties . get ( key ) ) ; } } return map ; }
Convert this properties object to a map.
@param properties
@return