@Override
 protected StagedModel getStagedModel(String uuid, Group group) {
   try {
     return MBCategoryLocalServiceUtil.getMBCategoryByUuidAndGroupId(uuid, group.getGroupId());
   } catch (Exception e) {
     return null;
   }
 }
  public static void addPortletBreadcrumbEntries(
      long categoryId, HttpServletRequest request, RenderResponse renderResponse) throws Exception {

    MBCategory category = null;

    if ((categoryId != MBCategoryConstants.DEFAULT_PARENT_CATEGORY_ID)
        && (categoryId != MBCategoryConstants.DISCUSSION_CATEGORY_ID)) {

      category = MBCategoryLocalServiceUtil.getCategory(categoryId);
    }

    addPortletBreadcrumbEntries(category, request, renderResponse);
  }
  @Override
  protected void validateImport(
      Map<String, List<StagedModel>> dependentStagedModelsMap, Group group) throws Exception {

    List<StagedModel> dependentStagedModels =
        dependentStagedModelsMap.get(MBCategory.class.getSimpleName());

    Assert.assertEquals(1, dependentStagedModels.size());

    MBCategory category = (MBCategory) dependentStagedModels.get(0);

    MBCategoryLocalServiceUtil.getMBCategoryByUuidAndGroupId(
        category.getUuid(), group.getGroupId());
  }
  @Override
  protected void addSubscription(long userId, long containerModelId) throws Exception {

    MBCategoryLocalServiceUtil.subscribeCategory(userId, group.getGroupId(), containerModelId);
  }