in src/main/java/org/apache/sling/sitemap/impl/SitemapStorage.java [427:441]
private boolean isExpired(@NotNull Resource state) {
ValueMap stateProperties = state.getValueMap();
Calendar lastModified = stateProperties.get(JcrConstants.JCR_LASTMODIFIED, Calendar.class);
if (lastModified != null) {
// advance lastModified by maxStateAge to get the point in time the state would expire
lastModified.add(Calendar.MILLISECOND, maxStateAge);
// check if the expire time is in the future
if (lastModified.after(Calendar.getInstance())) {
return false;
} else if (LOG.isDebugEnabled()) {
LOG.debug("State at {} expired at {}", state.getPath(), lastModified.getTime().toGMTString());
}
}
return true;
}