//add a participant
RelationshipParticipantType relationshipParticipantType = relationshipType.addNewParticipant();
relationshipParticipantType.setResourceId("urn:" + InteropConstants.WEATHERSTATION_KEY1);
relationshipParticipantType.setRole("urn://parent");//uri
EndpointReferenceType manageabilityEndpointReferenceType = relationshipParticipantType.addNewManageabilityEndpointReference();
manageabilityEndpointReferenceType.addNewAddress().setStringValue(InteropConstants.SERVICES_URL + "/" + InteropConstants.WEATHERSTATION_SERVICE_NAME);
ReferencePropertiesType referencePropertiesType = manageabilityEndpointReferenceType.addNewReferenceProperties();
XmlObject key1 = XmlBeanUtils.addChildElement(referencePropertiesType, qName);
XmlBeanUtils.setValue(key1, InteropConstants.WEATHERSTATION_KEY1);
RelationshipParticipantType relationshipParticipantType2 = relationshipType.addNewParticipant();