{
throw new FailedToStorePortletDefinitionException(e);
}
for (Preference pref : source.getPortletPreferences().getPortletPreferences())
{
Preference copyPref = copy.addDescriptorPreference(pref.getName());
copyPref.setReadOnly(pref.isReadOnly());
for (String value : pref.getValues())
{
copyPref.addValue(value);