public Map getMap() {
Map map = new HashMap();
Iterator it = preferences.keySet().iterator();
while (it.hasNext()) {
InternalPortletPreference pref = (InternalPortletPreference)
preferences.get(it.next());
map.put(pref.getName(),
pref.getValues() != null ? pref.getValues().clone() : null);
}
return Collections.unmodifiableMap(map);
}