/**
   * @param resp
   * @throws SynchException
   */
  public ExchangeResponse(final ResponseMessageType resp) throws SynchException {
    debug = getLogger().isDebugEnabled();

    message = resp.getMessageText();

    responseCode = resp.getResponseCode();

    descriptiveLinkKey = resp.getDescriptiveLinkKey();

    messageXml = resp.getMessageXml();

    ResponseClassType rcl = resp.getResponseClass();
    if (rcl.equals(ResponseClassType.ERROR)) {
      status = StatusType.ERROR;
      return;
    }

    if (rcl.equals(ResponseClassType.WARNING)) {
      status = StatusType.WARNING;
      return;
    }

    status = StatusType.OK;
  }