@Override
  public int getPageCountByBudgetId(int currPage, int budgetId, int flag) {
    ProjectSystem projectSystem = new ProjectSystem();
    PagingService pagingService = new PagingServiceImpl();
    if (currPage == 1 && flag == 1) {
      ActionContext.getContext().getSession().put("bId", budgetId);
    }
    Integer integer = (Integer) ActionContext.getContext().getSession().get("bId");
    int bId = integer.intValue();

    return pagingService.getPageCountByBudgetId(projectSystem, bId);
  }