if (actingAs.equals(loggedInPrivilegedSubject)) {
if (loggedInPrivilegedSubject.equals(actingAs))
  public ActionForward execute  	(ActionMapping				mapping,     ActionForm 					form,     HttpServletRequest 	request,     HttpServletResponse  response)  throws Exception  {    // Setup message array in case there are errors    ArrayList messages = new ArrayList();    // Confirm message resources loaded    MessageResources resources = getResources(request);    if (resources==null)    {      messages.add(Constants.ERROR_MESSAGES_NOT_LOADED);    }    // If there were errors, forward to our failure page    if (messages.size()>0)    {      request.setAttribute(Constants.ERROR_KEY,messages);      return findFailure(mapping);    }        HttpSession session = request.getSession();       Signet signet = (Signet)(session.getAttribute("signet"));      if (signet == null)    {      return (mapping.findForward("notInitialized"));    }        SignetSubject loggedInPrivilegedSubject =    	(SignetSubject)request.getSession().getAttribute(Constants.LOGGEDINUSER_ATTRNAME);        String compoundId = request.getParameter(Constants.ACTING_FOR_SELECT_ID);    String idParts[] = Common.parseCompoundId(compoundId);    SignetSubject actingAs = signet.getSubject(idParts[0], idParts[1]);        if (actingAs.equals(loggedInPrivilegedSubject))    {      loggedInPrivilegedSubject.setActingAs(null);    }    else    {      loggedInPrivilegedSubject.setActingAs(actingAs);    }        session.setAttribute      (Constants.CURRENTPSUBJECT_ATTRNAME,       loggedInPrivilegedSubject.getEffectiveEditor());    // Forward to our success page    return findSuccess(mapping);  }