if (!user.changeAlias(null)) {
getResponse().setStatus(Status.CLIENT_ERROR_CONFLICT);
return new StringRepresentation("The alias '"+alias+"' is not available.");
}
} else {
if (!user.changeAlias(alias)) {
getResponse().setStatus(Status.CLIENT_ERROR_CONFLICT);
return new StringRepresentation("The alias '"+alias+"' is not available.");
}
}
} catch (SQLException ex) {