class DefectService {

    @Transactional
    public void incrementalIndex(Project project, DefectAdapter defectAdapter, Date since) throws FetchException {
        log.trace("Begin defect incremental indexing for updates since {} for project {}", since, project.getName());

        final long projectId = project.getId();
        final List<Problem> problems = problemRepository.findAllByProjectIdAndDefectIdIsNotEmpty(projectId);
        incrementalIndex(projectId, defectAdapter, since, problems);
    }

}