prefs.setPreferencesValidator(src.portletPreferences.preferencesValidator);
if (src.portletPreferences.preference != null)
{
for (PreferenceType p : src.portletPreferences.preference)
{
Preference pref = prefs.addPreference(p.name);
if (p.value != null)
{
for (String value : p.value)
{
pref.addValue(value);
}
}
if (p.readOnly != null)
{
pref.setReadOnly(p.readOnly.booleanValue());
}
}
}
}
if (src.securityRoleRef != null)