if(_messageState != MessageState.REQUEST_WAIT) {
String msg = "replacing responseProcessor while in state=" + _messageState;
_log.error(msg);
_messageState = MessageState.CLOSED;
// do we need to find the channel and close it?
throw new DatabusException(new IllegalStateException(msg));
} else {
_log.debug("setting processor " + responseProcessor);
_responseProcessor = responseProcessor;
}
}