private RelationshipDelta processRelationshipResults(XQResultSequence results, TypeHierarchy types) throws JavaModelException, XQException, FusionTypeCheckException {
RelationshipDelta delta = new RelationshipDelta();
while (results.next()) {
Element relElement = (Element) results.getObject();
String relName = relElement.getAttribute("name");
Effect effect = Effect.valueOf(relElement.getAttribute("effect"));
if (effect == null || effect == Effect.TEST)
throw new FusionTypeCheckException(effect);
relName = Utilities.resolveType(context, relName);
Relation relType = relEnv.findRelation(relName);