final String PGPATH_CACHE = "org.zkoss.web.pgpath.cache";
Map map = (Map)ctx.getAttribute(PGPATH_CACHE);
if (map == null) {
map = Collections.synchronizedMap( //10 min
new CacheMap(500, 10*60*1000));
ctx.setAttribute(PGPATH_CACHE, map);
}
final Locale locale = Locales.getCurrent();
final URIIndex index = new URIIndex(pgpath, locale);