data.getAttributeMapper().setRepositoryPerson(attribute, person);
}
}
private IRepositoryPerson getPerson(TaskData data, Person person) {
TaskRepository repository = data.getAttributeMapper().getTaskRepository();
String email = person.getEmail();
IRepositoryPerson repositoryPerson;
if (email != null) {
repositoryPerson = repository.createPerson(email);
} else {
// seems to be the case in at least one case
repositoryPerson = repository.createPerson(person.getName());
}
repositoryPerson.setName(person.getName());
return repositoryPerson;
}