final Person person = process.getPerson();
if (process.isAllowedToManageProcess(userView)) {
person.edit((PersonBean) object);
} else if (person.getUser() == null && person.getStudent() == null && process.getCandidacyProcess().isPublicCandidacy()) {
// assuming public candidacy
person.editPersonWithExternalData((PersonBean) object, true);
}
return process;
}
}