String userName = preference.getPrincapalName();
for (JSNVPElement element : preference.getPreferences().getValues())
{
if (element.getValues() == null)
{
JetspeedPreferenceImpl pref = new JetspeedPreferenceImpl(element.getKey(), new String[] { element.getValue() });
pref.setReadOnly(element.isReadOnly());
portletPreference.put(element.getKey(), pref);
}
else
{
JetspeedPreferenceImpl pref = new JetspeedPreferenceImpl(element.getKey(), element.getValues());
pref.setReadOnly(element.isReadOnly());
portletPreference.put(element.getKey(), pref);
}
}
if (portletPreference.size() > 0)
{