.newDocument();
Element rootElement = ArtifactUsageSerializer.toXml(gav, doc);
doc.appendChild(rootElement);
// default is XML, so no need to wrap it in a Representation
ArtifactUsageSerializer.toXml(artifactUsers, doc, rootElement);
return new DomRepresentation(MediaType.APPLICATION_XML, doc);
} catch (ParserConfigurationException e) {
throw new ResourceException(e);
}
}
}