protected <T> AchillesFuture<T> asyncInsert(final T entity, Options options) {
entityValidator.validateEntity(entity, entityMetaMap);
optionsValidator.validateOptionsForUpsert(entity, entityMetaMap, options);
proxifier.ensureNotProxy(entity);
PersistenceManagerOperations context = initPersistenceContext(entity, options);
return context.persist(entity);
}
protected <T> AchillesFuture<T> asyncUpdate(T entity, Options options) {
proxifier.ensureProxy(entity);
Object realObject = proxifier.getRealObject(entity);