UIComponent target = SearchExpressionFacade.resolveComponent(context, panel, panel.getFor());
String targetClientId = (target == null) ? null: target.getClientId(context);
String clientId = panel.getClientId(context);
WidgetBuilder wb = getWidgetBuilder(context);
wb.initWithDomReady("OverlayPanel", panel.resolveWidgetVar(), clientId)
.attr("targetId", targetClientId, null)
.attr("showEvent", panel.getShowEvent(), null)
.attr("hideEvent", panel.getHideEvent(), null)
.attr("showEffect", panel.getShowEffect(), null)
.callback("onShow", "function()", panel.getOnShow())