try {
if (userService.findByUsername(data.getUsername()) != null) {
return responseMap.mapError("Account Name already exists");
}
UserUI savedUser = userService.create(data);
if (savedUser != null) {
return responseMap.mapOK(savedUser,
"Account Created Succesfully");
} else {
return responseMap.mapError("Error trying to create account.");