final TobagoResponseWriter writer = HtmlRendererUtils.getTobagoResponseWriter(facesContext);
final UIPopup popup = (UIPopup) component;
final LayoutContext layoutContext = new LayoutContext(popup);
layoutContext.layout();
// XXX fixing invisible popups
if (popup.getCurrentWidth() == null || popup.getCurrentWidth().equals(Measure.ZERO)) {
LOG.warn("Undefined width of popup with id='" + popup.getClientId(facesContext) + "'");
popup.setCurrentWidth(getPreferredWidth(facesContext, popup));