outStr.append("  edit\n");
outStr.append("Edit\n");
  public static String editLink    (PrivilegedSubject  loggedInPrivilegedSubject,     Grantable          grantable)  {    StringBuffer outStr = new StringBuffer();    String editAction      = (grantable instanceof Proxy ? "Designate.do" : "Conditions.do");    String paramName      = (grantable instanceof Proxy          ? Constants.PROXYID_HTTPPARAMNAME          : "assignmentId");        Decision decision = loggedInPrivilegedSubject.canEdit(grantable);    boolean canEdit = decision.getAnswer();        // Here's a notable exception: Since the UI cannot grant non-Subsystem-    // specific Proxies, it cannot edit them either.        if ((grantable instanceof Proxy)        && (((Proxy)grantable).getSubsystem() == null))    {      canEdit = false;     }        if (canEdit == true)    {      outStr.append("<a\n");      outStr.append("  style=\"float: right;\"\n");      outStr.append("  href=\"" + editAction + "?" + paramName + "=" + grantable.getId() + "\">\n");      outStr.append("  <img\n");      outStr.append("    src=\"images/arrow_right.gif\"\n");      outStr.append("      alt=\"\" />\n");      outStr.append("  edit\n");      outStr.append("</a>");    }        return outStr.toString();  }