protocol.write(message, namedChannel);
message = protocol.read(namedChannel);
if (message instanceof NodeGroupInfoReject) {
NodeGroupInfoReject reject = (NodeGroupInfoReject) message;
throw new EnvironmentFailureException
(repImpl,
EnvironmentFailureReason.HANDSHAKE_ERROR,
" Feeder: " + feederNameIdPair + ". " +
reject.getErrorMessage());
}
if (!(message instanceof NodeGroupInfoOK)) {
throw new EnvironmentFailureException
(repImpl,