* @param cpd
* @return
*/
public Set<String> getArbitraryPortletPreferenceNames(ChannelDefinitionForm form) {
// set default values for all channel parameters
ChannelPublishingDefinition cpd = this.channelPublishingDefinitionDao.getChannelPublishingDefinition(form.getTypeId());
Set<String> currentPrefs = new HashSet<String>();
currentPrefs.addAll(form.getPortletPreferences().keySet());
for (CPDStep step : cpd.getParams().getSteps()) {
if (step.getPreferences() != null) {
for (CPDPreference pref : step.getPreferences()) {
currentPrefs.remove(pref.getName());
}
}