public DocRetrieveAcknowledgementType sendToAdapter(
      RetrieveDocumentSetResponseType body, AssertionType assertion) {
    DocRetrieveAcknowledgementType response = new DocRetrieveAcknowledgementType();
    RegistryResponseType resp = new RegistryResponseType();

    resp.setStatus(NhincConstants.DOC_RETRIEVE_DEFERRED_RESP_ACK_STATUS_MSG);
    response.setMessage(resp);

    log.info("AdapterComponentDocRetrieveDeferredRespNoOpImpl.sendToAdapter() - NO OP called");

    return response;
  }
  private OutboundOrchestratable createOutboundOrchestratable(String id) {
    RegistryResponseType regResponse = new RegistryResponseType();
    regResponse.setStatus(id);

    XDRAcknowledgementType response = new XDRAcknowledgementType();
    response.setMessage(regResponse);

    OutboundDocSubmissionDeferredResponseOrchestratable orchestratable =
        new OutboundDocSubmissionDeferredResponseOrchestratable(null);
    orchestratable.setResponse(response);

    return orchestratable;
  }
  public DocQueryAcknowledgementType respondingGatewayCrossGatewayQuery(
      AdhocQueryRequest msg, AssertionType assertion, String errMsg) {
    log.debug("Begin respondingGatewayCrossGatewayQuery");
    DocQueryAcknowledgementType response = null;

    try {
      String url =
          oProxyHelper.getUrlLocalHomeCommunity(
              NhincConstants.ADAPTER_DOCUMENT_QUERY_DEFERRED_REQ_ERROR_SECURED_SERVICE_NAME);
      AdapterDocQueryDeferredRequestErrorSecuredPortType port =
          getPort(url, NhincConstants.DOC_QUERY_ACTION, WS_ADDRESSING_ACTION, assertion);

      if (msg == null) {
        log.error("Message was null");
      } else if (assertion == null) {
        log.error("AssertionType was null");
      } else if (port == null) {
        log.error("port was null");
      } else {
        AdapterDocumentQueryDeferredRequestErrorSecuredType request =
            new AdapterDocumentQueryDeferredRequestErrorSecuredType();
        request.setAdhocQueryRequest(msg);
        request.setErrorMsg(errMsg);

        response =
            (DocQueryAcknowledgementType)
                oProxyHelper.invokePort(
                    port,
                    AdapterDocQueryDeferredRequestErrorSecuredPortType.class,
                    "respondingGatewayCrossGatewayQuery",
                    request);
      }
    } catch (Exception ex) {
      log.error("Error calling respondingGatewayCrossGatewayQuery: " + ex.getMessage(), ex);
      response = new DocQueryAcknowledgementType();
      RegistryResponseType regResp = new RegistryResponseType();
      regResp.setStatus(NhincConstants.DOC_QUERY_DEFERRED_REQ_ACK_STATUS_MSG);
      response.setMessage(regResp);
    }

    log.debug("End respondingGatewayCrossGatewayQuery");
    return response;
  }