// Create and store CSS Cache Entry.
final CacheIdentity identity =
cssCache.store(new CSSCacheEntry(entity, timeToLive));
MarinerURL baseURL = getBaseURL();
baseURL.setParameterValue("key", identity.getBase64KeyAsString());
final String sessionType = configuration.getCssSessionType();
if (sessionType != null && StyleSheetConfiguration.INCLUDE_SESSION_ID.equals(sessionType)) {
baseURL = context.getSessionURLRewriter().mapToExternalURL(
context.getRequestContext(), baseURL);
}
String url = baseURL.getExternalForm();
if (logger.isDebugEnabled()) {
logger.debug("Generated CSS is accessible from: " + url);
}