@Override
public void encodeBegin(FacesContext context, UIComponent component) throws IOException {
if (!isAjaxSessionExpirationProcessing(context))
return;
SilentSessionExpiration sse = (SilentSessionExpiration) component;
String location = sse.getRedirectLocation();
if (location == null)
location = getRedirectLocationOnSessionExpired(context);
String onsessionexpiredHandlerFunction = "O$.reloadPage(\'" + location + "\');";
UIComponent ajaxSettings = component.getParent();