setHeaders(sheet);
for (CerimonyInquiryPerson inquiryPerson : requests) {
final Person person = inquiryPerson.getPerson();
final CerimonyInquiryAnswer inquiryAnswer = inquiryPerson.getCerimonyInquiryAnswer();
sheet.newRow();
sheet.addCell(person.getUsername());
sheet.addCell(person.getName());
sheet.addCell(person.getEmail());
final StringBuilder contacts = new StringBuilder();
for (final PartyContact partyContact : person.getPartyContactsSet()) {
if (partyContact instanceof Phone || partyContact instanceof MobilePhone) {
if (contacts.length() > 0) {
contacts.append(", ");
}
contacts.append(partyContact.getPresentationValue());
}
}
sheet.addCell(contacts.toString());
sheet.addCell((inquiryAnswer != null ? inquiryAnswer.getText() : new String("-")));
sheet.addCell(getDegrees(person));
sheet.addCell(inquiryPerson.getComment());
}
}