Long applicationVersionId = (Long) emailModel.getParams().get("applicationVersionId");
Long userId = (Long) emailModel.getParams().get("userId");
Boolean resignSuccess = (Boolean) emailModel.getParams().get("resignSuccess");
ResignErrorType resignErrorType = ResignErrorType.GENERIC;
Object resignErrorTypeObject = emailModel.getParams().get("resignErrorType");
if (resignErrorTypeObject != null) {
try {
resignErrorType = ResignErrorType.valueOf((String) resignErrorTypeObject);
} catch (Exception e) {