RequestContext reqCtx = (RequestContext) this.pageContext.getRequest().getAttribute(RequestContext.REQCTX);
List<WidgetCheckInfo> checkInfos = new ArrayList<WidgetCheckInfo>();
IPageUserConfigManager pageUserConfigManager = (IPageUserConfigManager) ApsWebApplicationUtils.getBean(JpmyportalplusSystemConstants.PAGE_USER_CONFIG_MANAGER, pageContext);
try {
Lang currentLang = (Lang) this.pageContext.getSession().getAttribute(JpmyportalplusSystemConstants.SESSIONPARAM_CURRENT_LANG);
IPage currentPage = (IPage) reqCtx.getExtraParam(SystemConstants.EXTRAPAR_CURRENT_PAGE);
Widget[] customShowletConfig = this.getCustomShowletConfig(currentPage);
Widget[] showletsToRender = pageUserConfigManager.getShowletsToRender(currentPage, customShowletConfig);
List<String> allowedShowlets = new ArrayList<String>();
Map<String, WidgetType> customizableShowlets = this.getCustomizableShowlets(pageUserConfigManager);
allowedShowlets.addAll(customizableShowlets.keySet());
Frame[] frames = ((MyPortalPageModel) currentPage.getModel()).getFrameConfigs();
for (int i = 0; i < frames.length; i++) {
Frame frame = frames[i];
if (!frame.isLocked()) {
Widget showlet = showletsToRender[i];
if (null != showlet && allowedShowlets.contains(showlet.getType().getCode())) {