@Override
public void encodeChildren(FacesContext context, UIComponent component) throws IOException {
AjaxSettings ajaxSettings = (AjaxSettings) component;
if (isAjaxSessionExpirationProcessing(context)) {
SessionExpiration expirationFacet = ajaxSettings.getSessionExpiration();
expirationFacet.encodeAll(context);
}
if (isAjaxErrorProcessing(context)) {
// TODO [Eugene Goncharov]: add error processing here