RegisterPublisher publisherInfo = requestDoc.getRegisterPublisher();
ActiveMQTopic topic = TopicExpressionConverter.toActiveMQTopic(publisherInfo.getTopicArray());
Calendar terminationTime = publisherInfo.getInitialTerminationTime();
if (terminationTime != null) {
// Termination time cannot be in the past
if (terminationTime.before(Calendar.getInstance())) {
// Is this the right way to fault??
throw new NotificationException("Termination time cannot be in the past.");
}
// We could fault here if the time is too far in the future.
}