AddLinkClassHelper: Cannot query; no document registered