@Override
public void changePassword(String username, String newPassword) {
try {
StringBuilder builder = new StringBuilder("/rest/change_password/");
builder.append(username);
ChangePassword changePassword = new ChangePassword();
changePassword.setNewPassword(newPassword);
restClient.put(builder.toString(), changePassword);
} catch (RestException ex) {
if (ex.getCause() != null && ex.getCause().getMessage().contains("USER_NOT_FOUND")) {
throw new UserNotFoundException(ex.getCause().getMessage());
}