if(log.isDebugEnabled()) {
if(log.isWarnEnabled()) {
  private void makeSocietyGraph() {    Collection objectsFromServlet =       getObjectsFromServlet(ClientServletUtil.AGENT_INFO_SERVLET);    if (objectsFromServlet == null)      return;    Vector nodeObjects = new Vector(objectsFromServlet.size());    Hashtable nameToUID = new Hashtable();    for (Iterator i = objectsFromServlet.iterator(); i.hasNext(); ) {      Object o = i.next();      if (!(o instanceof PropertyTree)) {        if(log.isDebugEnabled()) {          log.warn("CSMARTUL: expected PropertyTree, got: " +                              o.getClass());        }	continue;      }      PropertyTree properties = (PropertyTree)o;      ULSocietyNode node = new ULSocietyNode(properties);      nodeObjects.add(node);      String name = (String)properties.get(PropertyNames.ORGANIZATION_KEY_NAME);      String UID = node.getUID();      nameToUID.put(name, UID);    }    // organizations refer to each other by name,     // hence after creating nodes for all organizations,     // we create links from the name-to-UID mapping    for (int i = 0; i < nodeObjects.size(); i++) {      ULSocietyNode node = (ULSocietyNode)nodeObjects.elementAt(i);      PropertyTree properties = node.getProperties();      Set keys = properties.keySet();      for (Iterator keyIter = keys.iterator(); keyIter.hasNext(); ) {	String key = (String)keyIter.next();	if (key.startsWith(PropertyNames.ORGANIZATION_RELATED_TO)) {          String relationship = key.substring(key.lastIndexOf('_')+1);	  String relatedToName = (String)properties.get(key);	  String relatedToUID = (String)nameToUID.get(relatedToName);          // this creates duplicate links but grappa catches them; see csmartgraph	  if (relatedToUID != null) {            if (relationship.endsWith("Customer") ||                 relationship.endsWith("Superior"))              node.addIncomingLink(relatedToUID);            else if (!relationship.endsWith("Provider") &&                     !relationship.endsWith("Subordinate"))              // do nothing, assume that all relationships are dual              // so that graphing "one side" of the relationship is ok              //              node.addOutgoingLink(relatedToUID);              //            else              if(log.isDebugEnabled()) {                log.info("Unknown relationship: " + relatedToName);              }          }        }      }    }    if (nodeObjects.size() != 0) {      Window w =	(Window)new ULSocietyFrame(NamedFrame.AGENT,            new CSMARTGraph(nodeObjects, CSMARTGraph.GRAPH_TYPE_SOCIETY));      myWindows.add(w);    }  }