public boolean isDetailPage(CmsObject cms, CmsResource resource) {

        try {
            boolean result = m_detailPageIdCache.get(resource).booleanValue();
            if (!result) {
                // We want new detail pages to be available fast, so we don't cache negative results
                m_detailPageIdCache.invalidate(resource);
            }
            return result;
        } catch (ExecutionException e) {
            LOG.error(e.getLocalizedMessage(), e);
            return true;
        }
    }
public boolean isDetailPage ( CmsObject cms , CmsResource resource ) { try { boolean result = m_detailPageIdCache . get ( resource ) . booleanValue ( ) ; if ( ! result ) { m_detailPageIdCache . invalidate ( resource ) ; } return result ; } catch ( ExecutionException e ) { LOG . error ( e . getLocalizedMessage ( ) , e ) ; return true ; } }
Checks if the given resource is a detail page.<p>
Delegates the actual work to the cache state, but also caches the result.<p>

@param cms the current CMS context
@param resource the resource to check
@return true if the given resource is a detail page