String key = it.next();
if (key != null && key.trim().length() > 0) {
iC = (InputChannel) inputChannelMap.get(key);
if (iC != null ) {
if ( stopAllListeners ) {
iC.disconnectListenersFromQueue();
} else if ( iC.getInputQueueName() != null && !iC.getInputQueueName().startsWith("temp-queue")) {
iC.disconnectListenersFromQueue();
}
}
}