out.print(getHTMLFromXML(xml, "agentAttributes.xsl"));
out.print(displayAgentAttributes(agent));
    private void showAgentAttributes(String format, String agent) {      String xml = currentCommunityXML;      int start = xml.indexOf("<agent name=\"" + agent);      int end = xml.indexOf("</agent>", start);      xml = xml.substring(start, end+9);      if(format.equals("xml"))        out.write(xml);      else {        out.print(getHTMLFromXML(xml, "agentAttributes.xsl"));      }    }