I don't think getName() works for RelationshipTypes... think this method should return null