/** * {@inheritDoc } */ public Message generateACK(AcknowledgmentCode theAcknowledgementCode, HL7Exception theException) throws HL7Exception, IOException { if (theException != null && theException.getResponseMessage() != null) { return theException.getResponseMessage(); } Message out = instantiateACK(); out.setParser(getParser()); fillResponseHeader(out, theAcknowledgementCode); if (theException != null) { theException.populateResponse(out, theAcknowledgementCode, 0); } return out; }
/** * {@inheritDoc } */ public Message generateACK(AcknowledgmentCode theAcknowledgementCode, HL7Exception theException) throws HL7Exception, IOException { if (theException != null && theException.getResponseMessage() != null) { return theException.getResponseMessage(); } Message out = instantiateACK(); out.setParser(getParser()); fillResponseHeader(out, theAcknowledgementCode); if (theException != null) { theException.populateResponse(out, theAcknowledgementCode, 0); } return out; }