sinkConf =
(SinkConfiguration) ComponentConfigurationFactory.create(
sinkName, config, ComponentType.SINK);
if (sinkConf != null) {
sinkConf.configure(sinkContext);
}
if(!channelSet.contains(sinkConf.getChannel())){
throw new ConfigurationException("Channel " +
sinkConf.getChannel() + " not in active set.");