public int getOtherFavouriteCount() { if (otherFavouriteCount == null) { final PortalPage dashboard = getDashboard(); // We want to know how many times it has been favourited by OTHER people User dashboardOwner = UserUtils.getUser(dashboard.getOwnerUserName()); final boolean isFavourite = favouriteService.isFavourite(dashboardOwner, dashboard); final int count = isFavourite ? dashboard.getFavouriteCount().intValue() - 1 : dashboard.getFavouriteCount().intValue(); otherFavouriteCount = (long) count; } return otherFavouriteCount.intValue(); }