@Path("{id}")
public WrappedServer doServerPut(@PathParam("id") String id, WrappedServer request) throws CloudException {
InstanceData instance = getInstance(id);
if (request.server == null) {
request.server = new Server();
}
if (request.server.name != null && !Objects.equal(instance.getName(), request.server.name)) {
instance = instances.updateInstance(getProject(), instance.getId(), request.server.name);
}