public String getText(Object obj) {
   if (obj instanceof ServiceReference) {
     ServiceReference r = (ServiceReference) obj;
     JanusModule m = (JanusModule) getBundleContext().getService(r);
     return m.getName() + " (Provider = " + r.getBundle().getSymbolicName() + ")";
   }
   return obj.toString();
 }
 public Image getImage(Object obj) {
   if (obj instanceof ServiceReference) {
     ServiceReference r = (ServiceReference) obj;
     JanusModule m = (JanusModule) getBundleContext().getService(r);
     if (m.isRunning()) {
       return JanusSharedImages.getImage(JanusSharedImages.MODULE_RUNNING);
     }
     return JanusSharedImages.getImage(JanusSharedImages.MODULE);
   }
   if (obj instanceof AgentAddress) {
     return JanusSharedImages.getImage(JanusSharedImages.AGENT);
   }
   TreeObject to = (TreeObject) obj;
   if (to.getImageKey() == null) {
     return null;
   }
   return JanusSharedImages.getImage(to.getImageKey());
 }