if (expiresAfter.getTime() < now.getTime())
throw new InvalidKeyPassedException(new ErrorMessage("errors.getsubscriptionresult.SubscriptionExpired", subscriptionKey));
CoveragePeriod coveragePeriod = body.getCoveragePeriod();
if (coveragePeriod == null)
throw new InvalidTimeException(new ErrorMessage("errors.getsubscriptionresult.NullCoveragePeriod"));
if (coveragePeriod.getStartPoint() == null || coveragePeriod.getEndPoint() == null)
throw new InvalidTimeException(new ErrorMessage("errors.getsubscriptionresult.InvalidDateInCoveragePeriod"));
GregorianCalendar startPoint = coveragePeriod.getStartPoint().toGregorianCalendar();
GregorianCalendar endPoint = coveragePeriod.getEndPoint().toGregorianCalendar();
if (startPoint.getTimeInMillis() > endPoint.getTimeInMillis())
throw new InvalidTimeException(new ErrorMessage("errors.getsubscriptionresult.StartPointAfterEndPoint", startPoint.toString()));
}