pub fn realize_obj<R: ReadDoc>(
    doc: &R,
    obj_id: &ObjId,
    objtype: ObjType
) -> RealizedObject