IPage currentPage = this.getCurrentPage();
CustomPageConfig config = this.getCustomPageConfig();
Widget[] customShowlets = (null == config || config.getConfig() == null) ? null : config.getConfig();
Widget[] showletsToRender = this.getPageUserConfigManager().getShowletsToRender(currentPage, customShowlets);
Widget showletToMove = showletsToRender[this.getStartFramePos()];
Integer statusShowletToMoveInteger = this.getCustomShowletStatus() != null ? this.getCustomShowletStatus()[this.getStartFramePos()] : null;
int statusShowletToMove = (statusShowletToMoveInteger == null) ? 0 : statusShowletToMoveInteger;
WidgetUpdateInfoBean frameTargetUpdate =
new WidgetUpdateInfoBean(this.getTargetFramePos(), showletToMove, statusShowletToMove);
this.addUpdateInfoBean(frameTargetUpdate);
Widget showletOnFrameDest = showletsToRender[this.getTargetFramePos()];
Integer statusShowletOnFrameDestInteger = this.getCustomShowletStatus() != null ? this.getCustomShowletStatus()[this.getTargetFramePos()] : null;
int statusShowletOnFrameDest = (statusShowletOnFrameDestInteger == null) ? 0 : statusShowletOnFrameDestInteger;
WidgetUpdateInfoBean frameStartUpdate =
new WidgetUpdateInfoBean(this.getStartFramePos(), showletOnFrameDest, statusShowletOnFrameDest);
this.addUpdateInfoBean(frameStartUpdate);