field.setAccessible(true);
Map<String, ConnectionOrientedMessageChannel> tcpMessageChannels = (Map<String, ConnectionOrientedMessageChannel>) field.get(processor);
Iterator<ConnectionOrientedMessageChannel> itr = tcpMessageChannels.values().iterator();
while (itr.hasNext()) {
ConnectionOrientedMessageChannel tcpMessageChannel = itr.next();
logger.info("tcpMessageChannel port " + tcpMessageChannel.getPort() + " peerPort " + tcpMessageChannel.getPeerPort());
}
return tcpMessageChannels.values().iterator().next();
} catch (Exception e) {
e.printStackTrace();
fail(e.getMessage(), e);