= (Proxy)(session.getAttribute("currentProxy"));
= (Proxy)(session.getAttribute(Constants.PROXY_ATTRNAME));
  public ActionForward execute    (ActionMapping        mapping,     ActionForm           form,     HttpServletRequest   request,     HttpServletResponse response)  throws Exception  {System.out.println("DEBUG: ENTERING ConfirmProxyAction.execute()");    // Setup message array in case there are errors    ArrayList messages = new ArrayList();    ActionMessages actionMessages = null;    // Confirm message resources loaded    MessageResources resources = getResources(request);    if (resources==null)    {      messages.add(Constants.ERROR_MESSAGES_NOT_LOADED);    }System.out.println("DEBUG: ConfirmProxyAction: MARK 1");    // If there were errors, forward to our failure page    if (messages.size()>0)    {      request.setAttribute(Constants.ERROR_KEY,messages);      return findFailure(mapping);    }    System.out.println("DEBUG: ConfirmProxyAction: MARK 2");    HttpSession session = request.getSession();    Date    effectiveDate   = null;    Date    expirationDate  = null;      PrivilegedSubject grantor      = (PrivilegedSubject)          (session.getAttribute("loggedInPrivilegedSubject"));      // currentProxy is present in the session only if we are editing    // an existing Proxy. Otherwise, we're attempting to create a new one.    Proxy proxy      = (Proxy)(session.getAttribute("currentProxy"));      Signet signet = (Signet)(session.getAttribute("signet"));System.out.println("DEBUG: ConfirmProxyAction: MARK 3");      if (signet == null)    {      return (mapping.findForward("notInitialized"));    }System.out.println("DEBUG: ConfirmProxyAction: MARK 4");      Common.showHttpParams      ("ConfirmProxyAction.execute()", signet.getLogger(), request);        PrivilegedSubject currentGrantee      = Common.getSubjectFromSelectList          (signet,           request,           Constants.SUBJECT_SELECTLIST_ID,           Constants.COMPOSITE_ID_DELIMITER,           Constants.GRANTEE_ATTRNAME);     System.out.println("DEBUG: ConfirmProxyAction: MARK 5");    Subsystem subsystem      = Common.getSubsystem          (signet,           request,           Constants.SUBSYSTEM_SELECTNAME,           Constants.SUBSYSTEM_ATTRNAME);System.out.println("DEBUG: ConfirmProxyAction: MARK 6: currentGrantee='"+ currentGrantee+ "', subsystem='"+ subsystem+ "'");    if ((currentGrantee == null) || (subsystem == null))    {      // Let's send this user back to square one.      return (mapping.findForward("notInitialized"));    }System.out.println("DEBUG: ConfirmProxyAction: MARK 7");    try    {      effectiveDate        = Common.getDateParam            (request, Constants.EFFECTIVE_DATE_PREFIX, new Date());    }    catch (DataEntryException dee)    {      actionMessages        = addActionMessage            (request, actionMessages, Constants.EFFECTIVE_DATE_PREFIX);    }      try    {      expirationDate        = Common.getDateParam(request, Constants.EXPIRATION_DATE_PREFIX);    }    catch (DataEntryException dee)    {      actionMessages        = addActionMessage            (request, actionMessages, Constants.EXPIRATION_DATE_PREFIX);    }      // If we've detected any data-entry errors, let's bail out here, before we    // try to use that bad data.    if (actionMessages != null)    {      return findDataEntryErrors(mapping);    }    System.out.println("DEBUG: ConfirmProxyAction: MARK 8");      if (proxy != null)    {      // We're editing an existing Proxy.      proxy.setEffectiveDate(grantor, effectiveDate);      proxy.setExpirationDate(grantor, expirationDate);    }    else    {      // We're creating a new Proxy.      proxy        = grantor.grantProxy            (null,  // actingAs             currentGrantee,             subsystem,             true,  // canUse             false, // canExtend             effectiveDate,             expirationDate);    }    System.out.println("DEBUG: ConfirmProxyAction: MARK 9");      // Let's see whether or not the Proxy we want to save has any    // duplicates. If it does, we'll sidetrack the user with a warning    // screen.      Set duplicateProxies = proxy.findDuplicates();    if (duplicateProxies.size() > 0)    {      session.setAttribute(Constants.PROXY_ATTRNAME, proxy);      session.setAttribute(Constants.DUP_PROXIES_ATTRNAME, duplicateProxies);      return findDuplicateAssignments(mapping);    }    System.out.println("DEBUG: ConfirmProxyAction: MARK 10");      // If we've gotten this far, there must be no duplicate Proxies.    // Let's save this Proxy in the database.      signet.beginTransaction();    proxy.save();    signet.commit();      session.setAttribute(Constants.PROXY_ATTRNAME, proxy);    // Forward to our success page    return findSuccess(mapping);  }