throw new ApitraryOrmException("Cannot update null entity");
}
log.debug("Updating " + entity.getClass());
PutRequest request = new PutRequest();
request.setEntity(resolveApitraryEntity(entity));
request.setId(resolveApitraryEntityId(entity));
String payload = marshall(entity);
request.setRequestPayload(payload);
PutResponse response = resolveApitraryClient().send(request);
if (HttpStatus.No_Content.ordinal() != response.getStatusCode()) {
if (HttpStatus.Not_Found.ordinal() == response.getStatusCode()) {