write the descriptor class to a DOM tree and return it
if (! (descriptor instanceof MessageListener)) {
throw new IllegalArgumentException(getClass() + " cannot handle descriptors of type " + descriptor.getClass());
}
Iterator configProps = null;
if (descriptor instanceof MessageListener) {
configProps = ((MessageListener)descriptor).getConfigProperties().iterator();
}
//config property info
for (;configProps.hasNext();) {
EnvironmentProperty config = (EnvironmentProperty) configProps.next();
Node configNode = appendChild(parent, ConnectorTagNames.REQUIRED_CONFIG_PROP);
writeLocalizedDescriptions(configNode, config);
appendTextChild(configNode, ConnectorTagNames.CONFIG_PROPERTY_NAME, config.getName());
}
return parent;