ehdr.setEventId(eventId);
}
req.addHeader(ehdr);
String state = getSubscriptionState();
SubscriptionStateHeader hdr = parent.getHeaderFactory()
.createSubscriptionStateHeader(state);
if (state.equals(SubscriptionStateHeader.TERMINATED))
{
hdr.setReasonCode(getTerminationReason());
}
else if (state.equals(SubscriptionStateHeader.ACTIVE)
|| state.equals(SubscriptionStateHeader.PENDING))
{
hdr.setExpires(getTimeLeft());
}
req.addHeader(hdr);
AcceptHeader accept = parent.getHeaderFactory().createAcceptHeader(