code: @Override
    public T toProxy(Object id)
    {
      if (id == null) {
        return null;
      }
  
      ServiceRef ref = _services.service(toAddress(id));
  
      return ref.as(_entityClass);
    }
docs: /*
  @Override
  public void findAllIds(String where, Object[] params,
  Result<List<ID>> result)
  {
  String sql = getSelectPkSql(where);
  
  _db.findAll(sql, result.of(iter -> readIdListFromCursor(iter)), params);
  }
  
  @Override
  public <X> void findValueList(String sql,
  Object[] values,
  ResultChain<List<X>> result)
  {
  Iterable<Cursor> rows = _db.findAll(sql, values);
  
  List<X> list = new ArrayList<>();
  
  for (Cursor row : rows) {
  list.add((X) row.getObject(1));
  }
  
  result.ok(list);
  }