if (!lname.equals(name)) {
getResponse().setStatus(Status.CLIENT_ERROR_EXPECTATION_FAILED);
return new StringRepresentation("Cannot change the name of the remote app.");
}
if (app.exists()) {
if (app.update()) {
getResponse().setStatus(Status.SUCCESS_NO_CONTENT);
return null;
} else {
getContext().getLogger().severe("Cannot store XML for remote app.");
getResponse().setStatus(Status.SERVER_ERROR_INTERNAL);