code: public static boolean getBoolean(@NotNull ServletRequest request, @NotNull String param, boolean defaultValue) {
      String value = request.getParameter(param);
      return BooleanUtils.toBoolean(value);
    }
docs: Returns a request parameter as boolean.
  @param request Request.
  @param param Parameter name.
  @param defaultValue Default value.
  @return Parameter value or default value if it does not exist or <code>false</code> if it cannot be interpreted as
  boolean.