try {
CustomPageConfig pageConfig = this.getGuestPageConfig(page, request);
if (null == pageConfig) {
pageConfig = new CustomPageConfig(page.getCode(), page.getModel().getFrames().length);
}
pageConfig.update(updateInfos);
String cookieName = this.getCookieName(page);
Cookie newCookie = pageConfig.toCookie(cookieName);
response.addCookie(newCookie);
} catch (Throwable t) {
ApsSystemUtils.logThrowable(t, this, "updateGuestPageConfig");