public boolean sendApplicationVersionResignCompleteEmail(Long applicationVersionId, boolean resignSuccess, ResignErrorType resignErrorType, List<Long> users) {
boolean success = false;
if (applicationVersionId != null && users != null) {
List<EmailModel> emailModels = new ArrayList<EmailModel>();
for (Long user : users) {
EmailModel model = new EmailModel();
model.setEventType(EventType.APPLICATION_VERSION_RESIGN_COMPLETE);
model.getParams().put("applicationVersionId", applicationVersionId);
model.getParams().put("resignSuccess", resignSuccess);
model.getParams().put("resignErrorType", resignErrorType);
model.getParams().put("userId", user);
emailModels.add(model);
}
int numSent = sendBatchMessagesToQueue(emailModels);