createPreferenceMap(Collection preferences) Returns the preferences as map with name as the preference's name and value as
the preference object itself.
Returns the preferences as map with name as the preference's name and value as
the preference object itself.
Parameters: preferences - the preferences to be converted the preferences as map