use RelationshipType.class.isAssignableFrom(c) so that subclasses get validated too