if (colon < 0)
throw new ChannelConfigurationException(name, destKey + " destination is not fully qualified");
String portName = destId.substring(0, colon);
String destName = destId.substring(colon + 1);
port = server.getPort(portName);
destination = new BridgeDestination(destName);
do {
if (side != DESTINATION)
break;
destKey = pfx + "reply";
destId = conf.getString(destKey);
if (destId == null || destId.equals(""))
break;
if (log.isDebugEnabled())
log.debug("Channel " + name + " will request replies to " + destId);
colon = destId.indexOf(':');
if (colon < 0)
throw new ChannelConfigurationException(name, destKey + " destination is not fully qualified");
String replyPortName = destId.substring(0, colon);
String replyDestName = destId.substring(colon + 1);
if (!replyPortName.equals(portName))
throw new ChannelConfigurationException(name, destKey + " destination port must match 'to'");
replyTo = new BridgeDestination(replyDestName);
} while (false);
}