Component controller = container.get(childId.toString());
checkChildComponent(controller, childId);
// set the enclosure visibility
setVisible(controller.determineVisibility());
// transfer visibility to direct children
applyEnclosureVisibilityToChildren(container, markupStream, enclosureOpenTag);
warnAboutFormComponentsInsideEnclosure(container, markupStream, enclosureOpenTag);