Element consumerDescription = new Element("injection", ApamComponentFactory.APAM_NAMESPACE);
consumerDescription.addAttribute(new Attribute("relation", relation.getIdentifier()));
consumerDescription.addAttribute(new Attribute("target", relation.getTarget().toString()));
consumerDescription.addAttribute(new Attribute("method", injection.getName()));
consumerDescription.addAttribute(new Attribute("type", injection.getRequiredResource().toString()));
consumerDescription.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