protected function shouldBeLoaded($resource, array $excludeList)
    {
        if (in_array('*', $excludeList)) {
            return false;
        }

        $possibleEntries = array($resource, $this->hashString($resource)); // for URLs + inline blocks
        if ($baseName = basename($resource)) { // for URLs
            $possibleEntries[] = $baseName;
        }
        return
            (count(array_intersect($possibleEntries, $this->alwaysReloadableResources)) > 0) || // is "always reloadable"
            (count(array_intersect($possibleEntries, $excludeList)) === 0);          // is not contained in $excludeList
    }