Customize serialization of Atom links
8.2.3. Customising how the Atom links are serialised Because the RESTServiceDiscovery is in fact a JAXB type which inherits from List you are free to annotate it as you want to customise the JAXB serialisation, or just rely on the default with @XmlElementRef.