ConfigMap defaultChannelsMap = new ConfigMap();
for (Iterator iter = defaultChannels.iterator(); iter.hasNext();)
{
String id = (String)iter.next();
ConfigMap channelConfig = new ConfigMap();
channelConfig.addProperty("ref", id);
defaultChannelsMap.addProperty("channel", channelConfig);
if (!channelIds.contains(id))
channelIds.add(id);
}
if (defaultChannelsMap.size() > 0)