sb.append(agentChildren[i].getClass().getName());
sb.append(agentChildren[i].getClassName());
  private void displayPlugIns(String agentName) {    ComponentData societyComponentData = experiment.getSocietyComponentData();    if (societyComponentData == null) {      System.out.println("ConsoleInternalFrame: Need to save experiment");      return;    }    ComponentData[] children = societyComponentData.getChildren();    ComponentData nodeComponentData = null;    for (int i = 0; i < children.length; i++) {      if (children[i].getType().equals(ComponentData.HOST)) {        ComponentData[] nodes = children[i].getChildren();        for (int j = 0; j < nodes.length; j++) {          if (nodes[j].getName().equals(node.getShortName())) {            nodeComponentData = nodes[j];            break;          }        }      }    }    if (nodeComponentData == null)      return;    ComponentData[] agents = nodeComponentData.getChildren();    ComponentData agentComponentData = null;    for (int i = 0; i < agents.length; i++) {      if (agents[i] instanceof AgentComponentData &&          agents[i].getName().equals(agentName)) {        agentComponentData = agents[i];        break;      }    }    if (agentComponentData == null)      return;    ComponentData[] agentChildren = agentComponentData.getChildren();    ArrayList entries = new ArrayList(agentChildren.length);    for (int i = 0; i < agentChildren.length; i++) {      if (!agentChildren[i].getType().equals(ComponentData.PLUGIN))        continue;      StringBuffer sb = new StringBuffer();      sb.append(agentChildren[i].getClass().getName());      if (agentChildren[i].parameterCount() != 0) {        sb.append("(");        Object[] params = agentChildren[i].getParameters();        sb.append(params[0].toString());        for (int j = 1; j < agentChildren[i].parameterCount(); j++) {          sb.append(",");          sb.append(params[j].toString());        }        sb.append(")");      }      entries.add(sb.toString());    }    JList plugInsList = new JList(entries.toArray());    JScrollPane jsp = new JScrollPane(plugInsList);    jsp.setMinimumSize(new Dimension(50, 50));    JPanel agentInfoPanel = new JPanel();    agentInfoPanel.setLayout(new GridBagLayout());    plugInsList.setBackground(agentInfoPanel.getBackground());    int x = 0;    int y = 0;    agentInfoPanel.add(new JLabel("PlugIns:"),                   new GridBagConstraints(x++, y, 1, 1, 0.0, 0.0,                                          GridBagConstraints.WEST,                                          GridBagConstraints.NONE,                                          new Insets(10, 0, 5, 5),                                          0, 0));    agentInfoPanel.add(jsp,                   new GridBagConstraints(x, y++, 1, 1, 1.0, 0.0,                                          GridBagConstraints.WEST,                                          GridBagConstraints.HORIZONTAL,                                          new Insets(0, 0, 5, 0),                                          0, 0));    JOptionPane.showMessageDialog(this, agentInfoPanel,                                   "Information: " + agentName,                                  JOptionPane.PLAIN_MESSAGE);  }