The unique identifier for an object is contained in a Key object. A Key is a structure that contains the identifier in the form of an id attribute that is a String value. To retrieve the identifier, call the method RegistryObject.getKey().getId().
The JAXR provider also has an implementation-specific method for retrieving the logical identifier, which is called a lid. The lid is a String attribute of a RegistryObject. To retrieve the lid, call RegistryObjectImpl.getLid. The method has the following signature:
public java.lang.String getLid() throws JAXRException
For an example of the use of this method, see JAXRSearchOrg.java in the directory <INSTALL>/registry/samples/organizations/src. For more information on this example, see Retrieving Organization Attributes: Example.