public static void run(final AlumniIdentityCheckRequestBean bean) {
final Alumni alumni = new AlumniManager().checkAlumniIdentity(bean.getDocumentIdNumber(), bean.getContactEmail());
if (!alumni.hasAnyPendingIdentityRequests()) {
AlumniIdentityCheckRequest identityRequest =
new AlumniIdentityCheckRequest(bean.getContactEmail(), bean.getDocumentIdNumber(), bean.getFullName(),
bean.getDateOfBirthYearMonthDay(), bean.getDistrictOfBirth(), bean.getDistrictSubdivisionOfBirth(),
bean.getParishOfBirth(), bean.getSocialSecurityNumber(), bean.getNameOfFather(),
bean.getNameOfMother(), bean.getRequestType());
identityRequest.setAlumni(alumni);
if (identityRequest.isValid()) {
identityRequest.validate(Boolean.TRUE);
sendIdentityCheckEmail(identityRequest, Boolean.TRUE);
}
} else {
throw new DomainException("alumni.has.pending.identity.requests");