private void applyConverterPattern(FacesContext facesContext, UIPopup popup, String converterPattern) {
UIComponent box = (UIComponent) popup.getChildren().get(0);
UIComponent timePanel = box.findComponent("timePanel");
if (converterPattern != null && (converterPattern.indexOf('h') > -1 || converterPattern.indexOf('H') > -1)) {
UITime time = (UITime) timePanel.findComponent("time");
Measure popupHeight = popup.getCurrentHeight();
popupHeight = popupHeight.add(getResourceManager().getThemeMeasure(facesContext, time, "preferredHeight"));
popup.setHeight(popupHeight);
DateTimeConverter dateTimeConverter
= (DateTimeConverter) facesContext.getApplication().createConverter(DateTimeConverter.CONVERTER_ID);