Source:
<code>public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { <START> if (request.getRequestURI() != null && "/back_to_admin.do".equals(request.getRequestURI())) { <END> request.getSession().setAttribute("userBeingViewedUsername", null); } String forward = ""; ActionUtils.setUpNavLink(mapping.getParameter(), request); NewsUtils.putAppropriateNewsForViewingInRequest(request); User user = LegacySpringUtils.getUserManager().getLoggedInUser(); if (user != null) { final String role = LegacySpringUtils.getUserManager().getCurrentSpecialtyRole(user); if ("patient".equalsIgnoreCase(role)) { request.setAttribute("isPatient", true); } if ((user.getLastlogon() != null)) { request.setAttribute("lastLogin", format.format(user.getLastlogon())); } user.setLastlogon(new Date()); LegacySpringUtils.getUserManager().save(user); if ("patient".equalsIgnoreCase(role)) { String nhsno = LegacySpringUtils.getUserManager().getUsersRealNhsNoBestGuess(user.getUsername()); if (nhsno != null && !nhsno.equals("")) { UserLog userLog = LegacySpringUtils.getUserLogManager().getUserLog(nhsno); if (userLog != null) { request.setAttribute("lastDataDate", format.format(userLog.getLastdatadate().getTime())); String unitcode = userLog.getUnitcode(); if (unitcode != null) { Unit unit = LegacySpringUtils.getUnitManager().get(unitcode); if (null == unit) { request.setAttribute("lastDataFrom", "Unit with code: " + unitcode); } else { request.setAttribute("lastDataFrom", unit.getName()); } } } } forward = "patient"; } else { forward = "admin"; } } return LogonUtils.logonChecks(mapping, request, forward); }</code><technical_language>this enough: java if("/back_to_admin.do".equals(request.getRequestURI()))</technical_language>

Target:
public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { if ("/back_to_admin.do".equals(request.getRequestURI())) { request.getSession().setAttribute("userBeingViewedUsername", null); } String forward = ""; ActionUtils.setUpNavLink(mapping.getParameter(), request); NewsUtils.putAppropriateNewsForViewingInRequest(request); User user = LegacySpringUtils.getUserManager().getLoggedInUser(); if (user != null) { final String role = LegacySpringUtils.getUserManager().getCurrentSpecialtyRole(user); if ("patient".equalsIgnoreCase(role)) { request.setAttribute("isPatient", true); } if ((user.getLastlogon() != null)) { request.setAttribute("lastLogin", format.format(user.getLastlogon())); } user.setLastlogon(new Date()); LegacySpringUtils.getUserManager().save(user); if ("patient".equalsIgnoreCase(role)) { String nhsno = LegacySpringUtils.getUserManager().getUsersRealNhsNoBestGuess(user.getUsername()); if (nhsno != null && !nhsno.equals("")) { UserLog userLog = LegacySpringUtils.getUserLogManager().getUserLog(nhsno); if (userLog != null) { request.setAttribute("lastDataDate", format.format(userLog.getLastdatadate().getTime())); String unitcode = userLog.getUnitcode(); if (unitcode != null) { Unit unit = LegacySpringUtils.getUnitManager().get(unitcode); if (null == unit) { request.setAttribute("lastDataFrom", "Unit with code: " + unitcode); } else { request.setAttribute("lastDataFrom", unit.getName()); } } } } forward = "patient"; } else { forward = "admin"; } } return LogonUtils.logonChecks(mapping, request, forward); }