}
public void validateSetParameters(PortletDefinitionForm def, MessageContext context) {
PortletPublishingDefinition cpd = channelPublishingDefinitionDao.getChannelPublishingDefinition(def.getTypeId());
for (Step step : cpd.getSteps()) {
if (step.getParameters() != null) {
for (Parameter param : step.getParameters()) {
// if the user has entered a value for this parameter,
// check it against the CPD