Element relationDescription = new Element("injection", ApamComponentFactory.APAM_NAMESPACE);
relationDescription.addAttribute(new Attribute("relation", relation.getIdentifier()));
relationDescription.addAttribute(new Attribute("target", relation.getTarget().toString()));
relationDescription.addAttribute(new Attribute("name", injection.getName()));
relationDescription.addAttribute(new Attribute("type", injection.getRequiredResource().toString()));
relationDescription.addAttribute(new Attribute("isAggregate", Boolean.toString(injection.acceptMultipleProviders())));
/*
* show the current state of resolution. To avoid unnecessary
* synchronization overhead make a copy of the current target services
* and do not use directly the field that can be concurrently modified