For an example of creating an association, see JAXRPublishAssociation.java in the directory <INSTALL>/registry/samples/publish-association/src/. This example creates a RelatedTo association between any two objects whose unique identifiers you specify. For example, you could specify the two child organizations created in Creating and Retrieving an Organization Hierarchy: Examples.