public void run(List<Person> people, VigilantGroup group) throws ExcepcaoPersistencia {  ExecutionYear currentYear = ExecutionYear.readCurrentExecutionYear(); for (Person person : people) { Vigilant vigilant = person.getVigilantForGivenExecutionYear(currentYear); group.addVigilants((vigilant == null) ? new Vigilant(person, currentYear) : vigilant); } }
public void run(Map<VigilantGroup,List<Person>> peopleToAdd) throws ExcepcaoPersistencia {  Set<VigilantGroup> groups = peopleToAdd.keySet(); for (VigilantGroup group : groups) { List<Person> people = peopleToAdd.get(group); for (Person person : people) { Vigilant vigilant = person.getCurrentVigilant(); group.addVigilants((vigilant == null) ? new Vigilant(person) : vigilant); } } }
    public void run(List<Person> people, VigilantGroup group) throws ExcepcaoPersistencia {        ExecutionYear currentYear = ExecutionYear.readCurrentExecutionYear();        for (Person person : people) {            Vigilant vigilant = person.getVigilantForGivenExecutionYear(currentYear);            group.addVigilants((vigilant == null) ? new Vigilant(person, currentYear) : vigilant);        }    }