protected String editCostCenterDetails(final String costCenterCode, final Model model)
     throws CMSItemNotFoundException {
   if (!model.containsAttribute("b2BCostCenterForm")) {
     final B2BCostCenterData b2BCostCenterData =
         b2bCostCenterFacade.getCostCenterDataForCode(costCenterCode);
     final B2BCostCenterForm b2BCostCenterform = new B2BCostCenterForm();
     b2BCostCenterform.setOriginalCode(costCenterCode);
     b2BCostCenterform.setCode(b2BCostCenterData.getCode());
     b2BCostCenterform.setCurrency(b2BCostCenterData.getCurrency().getIsocode());
     b2BCostCenterform.setName(b2BCostCenterData.getName());
     b2BCostCenterform.setParentB2BUnit(b2BCostCenterData.getUnit().getUid());
     model.addAttribute(b2BCostCenterform);
   }
   storeCmsPageInModel(model, getContentPageForLabelOrId(ORGANIZATION_MANAGEMENT_CMS_PAGE));
   setUpMetaDataForContentPage(
       model, getContentPageForLabelOrId(ORGANIZATION_MANAGEMENT_CMS_PAGE));
   final List<Breadcrumb> breadcrumbs =
       myCompanyBreadcrumbBuilder.createManageCostCenterBreadCrumbs();
   myCompanyBreadcrumbBuilder.addViewCostCenterBreadCrumbs(breadcrumbs, costCenterCode);
   breadcrumbs.add(
       new Breadcrumb(
           String.format(MANAGE_COSTCENTERS_EDIT_URL, costCenterCode),
           getMessageSource()
               .getMessage(
                   "text.company.costCenter.editPage.breadcrumb",
                   new Object[] {costCenterCode},
                   getI18nService().getCurrentLocale()),
           null));
   model.addAttribute("breadcrumbs", breadcrumbs);
   model.addAttribute("metaRobots", "no-index,no-follow");
   return ControllerConstants.Views.Pages.MyCompany.MyCompanyCostCenterEditPage;
 }
 protected String viewCostCenterDetails(final String costCenterCode, final Model model)
     throws CMSItemNotFoundException {
   model.addAttribute(
       "b2bCostCenter", b2bCostCenterFacade.getCostCenterDataForCode(costCenterCode));
   storeCmsPageInModel(model, getContentPageForLabelOrId(ORGANIZATION_MANAGEMENT_CMS_PAGE));
   setUpMetaDataForContentPage(
       model, getContentPageForLabelOrId(ORGANIZATION_MANAGEMENT_CMS_PAGE));
   final List<Breadcrumb> breadcrumbs =
       myCompanyBreadcrumbBuilder.createManageCostCenterBreadCrumbs();
   myCompanyBreadcrumbBuilder.addViewCostCenterBreadCrumbs(breadcrumbs, costCenterCode);
   model.addAttribute("breadcrumbs", breadcrumbs);
   model.addAttribute("metaRobots", "no-index,no-follow");
   return ControllerConstants.Views.Pages.MyCompany.MyCompanyCostCenterViewPage;
 }