return c.get();
return result;
    public Object retrieve(ObjectType obj, Object id) {        PersistentCollection pc = retrieve(getQuery(obj, id));        Cursor c = pc.getDataSet().getCursor();        if (c.next()) {            if (c.next()) {                throw new IllegalStateException                    ("query returned more than one row");            }            return c.get();        } else {            return null;        }    }