public WOActionResults resendInvitation() {
EOEditingContext editingContext = ERXEC.newEditingContext();
SPMembership localMembership = _membership.localInstanceIn(editingContext);
try {
SPUtilities.sendInvitationEmail(localMembership, context(), session().errors());
session().notifications().addNotice("Processing invitation to '" + localMembership.personName() + "'.");
}
catch (Exception e) {
localMembership.person().setEmailDeliveryFailure(Boolean.TRUE);
session().errors().addNotice("Failed to send invitation to '" + localMembership.personName() + "': " + e.getMessage());
SPUtilities.log.error("Failed to send invitation to '" + localMembership.personName() + "'.", e);