CMS-2812 Create class for serializing a RelationshipType as XML