code: public static Parameter getActionParameter(Action action, String paramName) {
          for (Parameter param : action.getParameters()) {
              if (paramName.equals(param.getName())) {
                  return param;
              }
          }
          return NOT_FOUND_PARAMETER;
      }
docs: Returns the first parameter with attribute "name" equals to paramName; if
  not found, NOT_FOUND_PARAMETER.