// Cache the action urls
StringBuffer flavors = new StringBuffer();
synchronized (urlCache) {
for (RequestFlavor flavor : action.getFlavors()) {
WebUrl actionUrl = new WebUrlImpl(action.getSite(), action.getPath(), Resource.LIVE, flavor);
String normalizedUrl = actionUrl.normalize(false, false, true);
urlCache.put(normalizedUrl, pool);
if (flavors.length() > 0)
flavors.append(",");
flavors.append(flavor.toString().toLowerCase());
logger.trace("Caching action '{}' for url {}", action, normalizedUrl);