Validity vsUser = userService.validate(user);
if (vsUser.isValid()) {
userService.registerUser(user, request);
response.setResult(user);
} else {
response.setError(key.vdnCode, vsUser.errorMsgs());
}
} catch (Exception e) {
log.error(e.getMessage());
response.setError(key.iseCode, e.getMessage());
}