// Generate a <link type="text/css"> tag in the page header pointing to
// the theme stylesheet. If neither of these is defined then presumably
// the stylesheet is referenced by a <link> tag hard-wired into the page
// or inserted via some other means.
if (styleLocation != null) {
addResource.addStyleSheet(context, AddResource.HEADER_BEGIN, styleLocation + "/" + themeName + "/theme.css");
}
else {
addResource.addStyleSheet(context, AddResource.HEADER_BEGIN, HtmlJSCookMenuRenderer.class, themeName
+ "/theme.css");
}