private void encodeBox(FacesContext facesContext, TobagoResponseWriter writer, UIBox box) throws IOException {
// todo: shadow = 0px means, that shadow is disabled, but it may be better, if we can set a boolean in the config.
// todo: this is possible after fixing
Measure measure = getResourceManager().getThemeMeasure(facesContext, box, "shadow");
boolean hasShadow = measure.greaterThan(Measure.ZERO);
if (hasShadow) {
// shadow begin
writer.startElement(HtmlElements.DIV, box);
writer.writeClassAttribute(Classes.create(box, "shadow"));