code: protected boolean isResourceInTimeWindow(CmsPublishedResource resource) {
  
          return m_cms.existsResource(
              m_cms.getRequestContext().removeSiteRoot(resource.getRootPath()),
              CmsResourceFilter.DEFAULT);
      }
docs: Checks if the published resource is inside the time window set with release and expiration date.<p>
  
  @param resource the published resource to check
  @return true if the published resource is inside the time window, otherwise false