// Cache operations
synchronized(_cache)
{
// Look for it in the cache
CachedResource cached = (CachedResource)_cache.get(pathInContext);
if (cached!=null)
{
if(log.isTraceEnabled())log.trace("CACHE HIT: "+cached);
CachedMetaData cmd = (CachedMetaData)cached.getAssociate();
if (cmd!=null && cmd.isValid())
return cached;
}
// Make the resource