Simplification of API

Change-Id: I62ebc9fdcc54d53fcaabd0ad605641c07c082ae5
diff --git a/framework/bundles/org.eclipse.ecf.remoteservice.ui/src/org/eclipse/ecf/remoteserviceadmin/ui/endpoint/EndpointDiscoveryView.java b/framework/bundles/org.eclipse.ecf.remoteservice.ui/src/org/eclipse/ecf/remoteserviceadmin/ui/endpoint/EndpointDiscoveryView.java
index 65835a5..ad2f259 100644
--- a/framework/bundles/org.eclipse.ecf.remoteservice.ui/src/org/eclipse/ecf/remoteserviceadmin/ui/endpoint/EndpointDiscoveryView.java
+++ b/framework/bundles/org.eclipse.ecf.remoteservice.ui/src/org/eclipse/ecf/remoteserviceadmin/ui/endpoint/EndpointDiscoveryView.java
@@ -499,14 +499,20 @@
 			if (treeViewer == null) return;
 			switch (type) {
 			case RemoteServiceAdminEvent.IMPORT_UNREGISTRATION:
-				final ImportReference iRef = (ImportReference) event.getImportReference();
-				if (iRef != null) {
+				final ImportReference ir = (ImportReference) event.getImportReference();
+				if (ir != null) {
 					treeViewer.getControl().getDisplay().asyncExec(new Runnable() {
 						@Override
 						public void run() {
-							EndpointNode en = findEndpointNode(iRef);
-							if (en != null)
-								en.setImportReference(null);
+							EndpointGroupNode egn = contentProvider.getRootNode();
+							for(AbstractEndpointNode aen: egn.getChildren()) {
+								if (aen instanceof EndpointNode) {
+									EndpointNode en = (EndpointNode) aen;
+									ImportReference iRef = en.getImportReference();
+									if (iRef != null && iRef.equals(ir))
+										en.setImportReference(null);
+								}
+							}
 							viewer.refresh();
 						}});
 				}