proxy.revoke(revoker); proxy.save();
if (!(proxy.getStatus().equals(Status.INACTIVE))) { proxy.revoke(revoker); proxy.save(); }
  public final void testRevoke()  throws    ObjectNotFoundException,    SignetAuthorityException  {    for (int subjectIndex = 0;         subjectIndex < Constants.MAX_SUBJECTS;         subjectIndex++)    {      Subject subject        = signet.getSubject            (Signet.DEFAULT_SUBJECT_TYPE_ID,             Common.makeSubjectId(subjectIndex));            PrivilegedSubject pSubject = signet.getPrivilegedSubject(subject);            Set proxiesReceived = pSubject.getProxiesReceived();      proxiesReceived        = Common.filterProxies            (proxiesReceived, signet.getSubsystem(Constants.SUBSYSTEM_ID));            Proxy proxy = (Proxy)(proxiesReceived.toArray()[0]);            PrivilegedSubject revoker;            if (proxy.getProxy() == null)      {        revoker = proxy.getGrantor();      }      else      {        revoker = proxy.getProxy();        revoker.setActingAs(proxy.getGrantor());      }            proxy.revoke(revoker);      proxy.save();    }  }