(PrivilegedSubject pSubject, String            actingAsButtonId)
(PrivilegedSubject pSubject)
  private static String displayProxyOptions    (PrivilegedSubject pSubject,     String            actingAsButtonId)  {    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        ("  onClick=\"javascript:document.getElementById('" + actingAsButtonId + "').disabled=true;\"\n");    }    else    {      // We're acting as someone other than ourselves.      outStr.append        ("  onClick=\"javascript:document.getElementById('" + actingAsButtonId + "').disabled=false;\"\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(Status.ACTIVE, null, null);    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          ("  onClick=\"javascript:document.getElementById('" + actingAsButtonId + "').disabled=true;\"\n");      }      else      {        outStr.append          ("  onClick=\"javascript:document.getElementById('" + actingAsButtonId + "').disabled=false;\"\n");      }            outStr.append("  value=\"" + Common.buildCompoundId(grantor) + "\"\n");      outStr.append(">\n");      outStr.append("  " + grantor.getName() + "\n");      outStr.append("</OPTION>\n");    }        return outStr.toString();  }