preferenceList.add(new PortletPreferenceImpl(key, readOnly.getValue(), values));
}
}
portletDef.setPortletPreferences(preferenceList);
updateLifecycleState(form, portletDef, publisher);
<BUG>portletPublishingService.savePortletDefinition(portletDef, publisher, Arrays.asList(categories), Arrays.asList(groupMembers));

updatePermissions(portletDef, subscribeList, IPermission.PORTLET_SUBSCRIBER_ACTIVITY);
updatePermissions(portletDef, browseList, IPermission.PORTLET_BROWSE_ACTIVITY);
</BUG>
return this.createPortletDefinitionForm(publisher, portletDef.getPortletDefinitionId().getStringId());

preferenceList.add(new PortletPreferenceImpl(key, readOnly.getValue(), values));
}
}
portletDef.setPortletPreferences(preferenceList);
updateLifecycleState(form, portletDef, publisher);
portletPublishingService.savePortletDefinition(portletDef, publisher, categories, new ArrayList<>(subscribePrincipalSet));
updatePermissions(portletDef, browsePrincipalSet, IPermission.PORTLET_BROWSE_ACTIVITY);
