outStr.append("  " + grantor.getName() + "\n");
outStr.append("  " + grantorName + "\n");
  private static String displayProxyOptions    (PrivilegedSubject pSubject)  {    StringBuffer outStr = new StringBuffer();        outStr.append      ("<OPTION\n");        if (pSubject.equals(pSubject.getEffectiveEditor()))    {      // We're acting as no one but ourselves.      outStr.append        ("  SELECTED\n");    }    outStr.append("  value=\"" + Common.buildCompoundId(pSubject) + "\"\n");    outStr.append(">\n");    outStr.append("  myself (" + pSubject.getName() + ")\n");    outStr.append("</OPTION>\n");        Set proxiesReceived = pSubject.getProxiesReceived();    proxiesReceived = filterProxies(proxiesReceived, Status.ACTIVE);    Iterator proxiesReceivedIterator = proxiesReceived.iterator();        // Get a Set of unique Proxy-grantors to choose from.    Set proxyGrantors = new TreeSet();    while (proxiesReceivedIterator.hasNext())    {      Proxy proxy = (Proxy)(proxiesReceivedIterator.next());      proxyGrantors.add(proxy.getGrantor());    }        Iterator proxyGrantorsIterator = proxyGrantors.iterator();    while (proxyGrantorsIterator.hasNext())    {      PrivilegedSubject grantor        = (PrivilegedSubject)(proxyGrantorsIterator.next());      boolean isCurrent = (grantor.equals(pSubject.getEffectiveEditor()));      outStr.append("<OPTION\n");      if (isCurrent)      {        outStr.append(" SELECTED\n");      }            outStr.append("  value=\"" + Common.buildCompoundId(grantor) + "\"\n");      outStr.append(">\n");      outStr.append("  " + grantor.getName() + "\n");      outStr.append("</OPTION>\n");    }        return outStr.toString();  }