// init the {http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part2.xsd}Relationship Resource Property
resourceProperty = resourcePropertySet.get( ApplicationPropertyQNames.RELATIONSHIP );
org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.RelationshipDocument prop_relationship =
org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.RelationshipDocument.Factory.newInstance( );
RelationshipDocument relationshipDocument =
RelationshipDocument.Factory.newInstance( );
//add new type
RelationshipType relationshipType = relationshipDocument.addNewRelationship( );
RelationshipTypeType relationshipTypeType = relationshipType.addNewType( );
XmlObject relationType =
XmlObject.Factory.parse( "<" + ExampleConstants.RELATIONSHIP_RELATION.getPrefix( ) + ":"
+ ExampleConstants.RELATIONSHIP_RELATION.getLocalPart( ) + " xmlns:"
+ ExampleConstants.RELATIONSHIP_RELATION.getPrefix( ) + "=" + "\""