if (s == null) {
throw new SoapFault("The value of wsrm:Identifier is not a known Sequence identifier", "Sender",
"wsrm:UnknownSequence", sequence.getIdentifier().toString());
}
SequenceAcknowledgement acknowledgement = new SequenceAcknowledgement();
acknowledgement.setIdentifier(sequence.getIdentifier());
if (s.lastMessageAcked > 0) {
AcknowledgementRange range = new AcknowledgementRange();
range.setLower(BigInteger.ONE);
range.setUpper(new BigInteger("" + s.lastMessageAcked));
acknowledgement.getAcknowledgementRange().add(range);
}
return acknowledgement;
}