// Remove the external endpoint descriptions from node.xml
DomainRegistry domainRegistry = compositeContext.getEndpointRegistry();
if (!domainRegistry.isDistributed()) {
for (Endpoint e : configuration.getEndpointDescriptions()) {
domainRegistry.removeEndpoint(e);
}
}
nodeFactory.removeNode(configuration);
/*