private Entity getEntity(Long id) { Entity e = adapter.getById(id); if (e == null) e = adapter.create(); return e; }