@Override public Incident getIncident(long id) throws IncidentServiceException, NotFoundException { for (IncidentDto dto : getPenv().tx(Queries.find(IncidentDto.class, id))) { final Job job = findJob(dto.getJobId()); if (job != null) { return toIncident(job, dto); } } throw new NotFoundException(); }