decorationEnabled = isDecorationEnabled(componentConfiguration.getDecorationModes(), wcmMode);
} else {
decorationEnabled = this.enableDecoration;
}
IncludeOptions options = IncludeOptions.getOptions(request, true);
if (!decorationEnabled) {
options.forceSameContext(true);
options.setDecorationTagName("");
}
boolean wcmDisabled;
if (this.disableWcm == null) {
wcmDisabled = componentConfiguration.isDisableWcm(); // default is in componentConfiguration
} else {
wcmDisabled = this.disableWcm;
}
if (wcmDisabled) {
WCMMode.DISABLED.toRequest(request);
}
try {
String[] componentAdditionalCssClassNames = componentConfiguration.getAdditionalCssClassNames();
if ((null != componentAdditionalCssClassNames) && (componentAdditionalCssClassNames.length > 0)) {
options.getCssClassNames().addAll(Arrays.asList(componentAdditionalCssClassNames));
}
if ((null != additionalCssClassNames) && (additionalCssClassNames.length > 0)) {
options.getCssClassNames().addAll(Arrays.asList(additionalCssClassNames));
}
wcmIncludeTag.setResourceType(resourceType);
return wcmIncludeTag.doEndTag();
} finally {