if (id != null) {
this.localIdentityMap.set(new IdentityHashMap());
this.internalUpdate(entity, id);
return entity;
} else {
throw new PrevaylerUnsavedObjectException("Cannot update unsaved object!");
}
} catch (IllegalAccessException actual) {
throw new IllegalStateException("Cannot access id value: " + id, actual);
}
}