implement findEntity/RelationById