@Override
@PUT
public UserAccountRequestResponseWrapper put(Context context, Request request, Response response, Object payload)
throws ResourceException
{
UserAccountRequestResponseWrapper result = new UserAccountRequestResponseWrapper();
UserAccount dto = ((UserAccountRequestResponseWrapper) payload).getData();
try {
User user = getSecuritySystem().getUser(getUserId(request));
user.setFirstName(dto.getFirstName());
user.setLastName(dto.getLastName());
user.setEmailAddress(dto.getEmail());
userAccountManager.updateAccount(user);
result.setData(nexusToRestModel(user, request));
}
catch (InvalidConfigurationException e) {
handleInvalidConfigurationException(e);
return null;