private void minerTeams(List<Team> gitTeams) {
EntityRepository repository = dao.findByID(repositoryToMinerId, EntityRepository.class);
int i = 0;
calculeSubProgress(i, gitTeams.size());
while (!canceled && i < gitTeams.size()) {
Team gitTeam = gitTeams.get(i);
EntityTeam team = minerTeam(gitTeam);
repository.addTeam(team);
dao.edit(team);
i++;
calculeSubProgress(i, gitTeams.size());