if (converterPattern != null && (converterPattern.indexOf('h') > -1 || converterPattern.indexOf('H') > -1)) {
UIComponent time = timePanel.findComponent("time");
int popupHeight = ComponentUtil.getIntAttribute(popup, ATTR_HEIGHT);
popupHeight += ThemeConfig.getValue(FacesContext.getCurrentInstance(), time, "fixedHeight");
popup.getAttributes().put(ATTR_HEIGHT, String.valueOf(popupHeight));
DateTimeConverter dateTimeConverter
= (DateTimeConverter) facesContext.getApplication().createConverter(CONVERTER_ID);
if (converterPattern.indexOf('s') > -1) {
dateTimeConverter.setPattern("HH:mm:ss");
} else {
dateTimeConverter.setPattern("HH:mm");
}
dateTimeConverter.setTimeZone(TimeZone.getDefault());
((ValueHolder) time).setConverter(dateTimeConverter);
} else {
timePanel.setRendered(false);
}
}