private void updatePortalPage(final PortalPage portalPage, final DashboardState dashboardState) { // update the portalPageStore's title and layout if they changed. if (!portalPage.getLayout().equals(dashboardState.getLayout()) || !StringUtils.equals(portalPage.getName(), dashboardState.getTitle())) { final PortalPage.Builder builder = PortalPage.portalPage(portalPage); builder.name(dashboardState.getTitle()); builder.layout(dashboardState.getLayout()); portalPageStore.update(builder.build()); } }