private Node getNode() {
// TODO Several places in Tuscany need to do this type of thing, for example, processing
// async responses, so we need to design a "proper" way to do it
for (ExtensionPointRegistry xpr : ExtensionPointRegistryLocator.getExtensionPointRegistries()) {
ActiveNodes activeNodes = xpr.getExtensionPoint(UtilityExtensionPoint.class).getUtility(ActiveNodes.class);
for (Object o : activeNodes.getActiveNodes()) {
Node node = (Node)o;
if (node.getDomainName().equals(domainName)) {
return node;
}
}