}
protected AWBindable _createComponentReference (String componentName, AWComponent component,
AWApplication application)
{
AWBindable element = super._createComponentReference(componentName, component, application);
String wrapperName = componentName(component, "wrapperComponent");
if (wrapperName != null) {
Map wrapperBindings = addBindingsForNewReference(component, MapUtil.map(),
(Map)properties(component).get("wrapperBindings"));
AWBindable wrapperElement = createElement(wrapperName, component, application, wrapperBindings);
Assert.that((wrapperElement instanceof AWElementContaining),
"Wrapper component not instance of AWElementContaining: %s", wrapperName);
((AWElementContaining)wrapperElement).add(element);
element = wrapperElement;
}