String action = req.getRequestObject().getParameter(Parameters.DISPATCH_ACTION);
PanelSession session = panel.getPanelSession();
if (!isSystemAction(action) && !Boolean.TRUE.equals(session.getAttribute(PARAMETER_ACTION_EXECUTED_ENABLED)) && isDoubleClickProtected(action)) {
// Factory actions have their own double click control.
log.warn("Discarding duplicated execution in panel " + panel.getInstance().getProvider().getDescription() + ", action: " + action + ". User should be advised not to double click!");
return new ShowPanelPage();
}
if (!isSystemAction(action)) {
session.removeAttribute(PARAMETER_ACTION_EXECUTED_ENABLED);
}