logger.debug("Cannot write style sheets as there " +
"is no renderer");
}
} else {
// Determine the rendering styles that are allowed
StyleSheetConfiguration configuration =
context.getVolantisBean().getStyleSheetConfiguration();
final boolean externalable =
(configuration.getSupportsExternal() &&
supportsExternalStyleSheets);
final boolean internalable = supportsInlineStyles;
// Only proceed if it is actually possible to render stylesheets
// in one or other way.
if (externalable || internalable) {
// Determine the specified stylesheet render mode.
StylesheetRenderMode specifiedMode = getSpecifiedRenderMode(
preferredLocationForThemeStylesheets,
protocolThemeStylesheetPreference,
configuration.getPreferredLocation());
// Determine the stylesheet renderMode mode
StylesheetRenderMode renderMode = determineActualRenderMode(
specifiedMode, externalable, internalable);