for (Map.Entry<String,PropertyDefinition> entry : cd.getPropertyDefinitions().entrySet()) {
PropertyDefinition pd = entry.getValue();
if (pd instanceof PropertyDefinitionSimple) {
PropertyDefinitionSimple pds = (PropertyDefinitionSimple) pd;
SimplePropDef prop = new SimplePropDef();
prop.setName(pds.getName());
prop.setRequired(pds.isRequired());
prop.setType(pds.getType());
prop.setDefaultValue(pds.getDefaultValue());
definitionRest.addParam(prop);
}
log.debug("copyParams: " + pd.getName() + " not yet supported");
}
}