}
} else if (pattern != null) // We're flushing keys which contain the pattern
{
if (cacheScope >= 0) {
Cache cache = admin.getCache((HttpServletRequest) pageContext.getRequest(), cacheScope);
cache.flushPattern(pattern);
} else {
throw new JspTagException("A pattern was specified for flushing, but the scope wasn't supplied or was invalid");
}
} else if (key == null) // we're flushing a whole scope
{