public int doEndTag() throws JspException {
if (renderedPartially == null) {
// Move attribute renderedPartially from selectOne to menuCommand component
UIComponent selectBooleanComponent = selectBooleanCheckbox.getComponentInstance();
AbstractUICommandBase command = (AbstractUICommandBase) menuCommandTag.getComponentInstance();
ValueBinding binding = selectBooleanComponent.getValueBinding(Attributes.RENDERED_PARTIALLY);
if (binding != null) {
command.setValueBinding(Attributes.RENDERED_PARTIALLY, binding);
} else {
Object renderedPartially = selectBooleanComponent.getAttributes().get(Attributes.RENDERED_PARTIALLY);
command.setRenderedPartially(StringUtils.split((String) renderedPartially, ", "));
}
}
selectBooleanCheckbox.doEndTag();
facetTag.doEndTag();