Element relationsDescription = new Element("dependencies", APAM_NAMESPACE);;
for (RelationDeclaration relationDeclaration : declaration.getRelations()) {
Element relationDescription = new Element("relation", APAM_NAMESPACE);
relationDescription.addAttribute(new Attribute("id", relationDeclaration.getIdentifier()));
relationDescription.addAttribute(new Attribute("resource", relationDeclaration.getTarget().toString()));
relationDescription.addAttribute(new Attribute("multiple", Boolean.toString(relationDeclaration.isMultiple())));
Element injectionsDescription = new Element("instrumentations", APAM_NAMESPACE);
for (RequirerInstrumentation injectionDeclaration : relationDeclaration.getInstrumentations()) {
Element injectionDescription = new Element("instrumentation", APAM_NAMESPACE);