field.setAccessible(true);
Map<String, TCPMessageChannel> tcpMessageChannels = (Map<String, TCPMessageChannel>) field.get(processor);
Iterator<TCPMessageChannel> itr = tcpMessageChannels.values().iterator();
while (itr.hasNext()) {
TCPMessageChannel 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);