Pattern0

    if (StringUtils.isBlank(v)) {
      String msg = "Missing \"client_id\" parameter";
      throw new ParseException(msg, OAuth2Error.INVALID_REQUEST.appendDescription(": " + msg));
    }
        throw new ParseException(msg, OAuth2Error.INVALID_REQUEST.appendDescription(": " + msg),
                           clientID, null, null, e);


Pattern1

    if (StringUtils.isBlank(s))
    if (s.equals(ResponseMode.QUERY.getValue())) {
      return ResponseMode.QUERY;
    else if (s.equals(ResponseMode.FRAGMENT.getValue())) {
      return ResponseMode.FRAGMENT;
    else if (s.equals(ResponseMode.FORM_POST.getValue())) {
      return ResponseMode.FORM_POST;
    else {
      return new ResponseMode(s);
    }


Pattern2

    if (StringUtils.isBlank(v))
    if (postLogoutRedirectURI != null && StringUtils.isNotBlank(v)) {
      state = new State(v);
    }


Pattern3

    if (StringUtils.isBlank(params.get("error")))
      throw new ParseException("Missing error code");
    String errorURIString = params.get("error_uri");


Pattern4

    if (StringUtils.isBlank(s))
      return getDefault();
    if (s.equals("page"))
      return PAGE;
    throw new ParseException("Unknown display type: " + s);


Pattern5

    if (StringUtils.isBlank(s))
    if (s.equals(ResponseMode.QUERY.getValue())) {
      return ResponseMode.QUERY;
    else if (s.equals(ResponseMode.FRAGMENT.getValue())) {
      return ResponseMode.FRAGMENT;
    else if (s.equals(ResponseMode.FORM_POST.getValue())) {
      return ResponseMode.FORM_POST;
    else {
      return new ResponseMode(s);
    }


Pattern6

    if (StringUtils.isBlank(v))
    if (StringUtils.isNotBlank(v)) {

      try {
        postLogoutRedirectURI = new URI(v);
      catch (URISyntaxException e) {
        throw new ParseException("Invalid \"post_logout_redirect_uri\" parameter: " + e.getMessage(),  e);
      }
    }
    if (postLogoutRedirectURI != null && StringUtils.isNotBlank(v)) {
      state = new State(v);
    }


Pattern7

    String v = params.get("client_id");
    if (StringUtils.isBlank(v)) {
    if (StringUtils.isNotBlank(v)) {

      try {
        redirectURI = new URI(v);

      catch (URISyntaxException e) {
        String msg = "Invalid \"redirect_uri\" parameter: " + e.getMessage();
        throw new ParseException(msg, OAuth2Error.INVALID_REQUEST.appendDescription(": " + msg),
                           clientID, null, null, e);
      }
    }
    if (StringUtils.isNotBlank(v))
      scope = Scope.parse(v);


Pattern8

    if (StringUtils.isBlank(params.get("error")))
      throw new ParseException("Missing error code");
    String errorURIString = params.get("error_uri");
    if (errorURIString != null) {
      
      try {
        errorURI = new URI(errorURIString);
        
      catch (URISyntaxException e) {
    
        throw new ParseException("Invalid error URI: " + errorURIString, e);
      }
    }


Pattern9

    if (StringUtils.isBlank(v))
      throw new ParseException("Missing \"id_token_hint\" parameter");
    v = params.get("post_logout_redirect_uri");
    v = params.get("state");
    if (postLogoutRedirectURI != null && StringUtils.isNotBlank(v)) {
      state = new State(v);
    }


Pattern10

    String v = params.get("client_id");
    if (StringUtils.isBlank(v)) {
    if (StringUtils.isNotBlank(v)) {

      try {
        redirectURI = new URI(v);

      catch (URISyntaxException e) {
        String msg = "Invalid \"redirect_uri\" parameter: " + e.getMessage();
        throw new ParseException(msg, OAuth2Error.INVALID_REQUEST.appendDescription(": " + msg),
                           clientID, null, null, e);
      }
    }
    State state = State.parse(params.get("state"));
    v = params.get("response_type");


Pattern11

    if (StringUtils.isBlank(v))
    v = params.get("post_logout_redirect_uri");
    if (StringUtils.isNotBlank(v)) {

      try {
        postLogoutRedirectURI = new URI(v);
      catch (URISyntaxException e) {
        throw new ParseException("Invalid \"post_logout_redirect_uri\" parameter: " + e.getMessage(),  e);
      }
    }
    v = params.get("state");


Pattern12

    if (StringUtils.isBlank(pattern))
      if (m.find()) {
        Continue = true;
        Map<String, String> group = m.namedGroups();
        if (group.get("definition"!= null) {
          try {
            addPattern(group.get("pattern"), group.get("definition"));
            group.put("name", group.get("name""=" + group.get("definition"));
          catch (GrokException e) {
            // Log the exeception
          }
        }
        namedRegexCollection.put("name" + index, (group.get("subname"!= null ? group.get("subname": group.get("name")));
        namedRegex = StringUtils.replace(namedRegex, "%{" + group.get("name""}""(?<name" + index + ">" + grokPatternDefinition.get(group.get("pattern")) ")");
        // System.out.println(_expanded_pattern);
        index++;
      }


Pattern13

    if (StringUtils.isBlank(v)) {
    v = params.get("redirect_uri");
    if (StringUtils.isNotBlank(v)) {

      try {
        redirectURI = new URI(v);

      catch (URISyntaxException e) {
        String msg = "Invalid \"redirect_uri\" parameter: " + e.getMessage();
        throw new ParseException(msg, OAuth2Error.INVALID_REQUEST.appendDescription(": " + msg),
                           clientID, null, null, e);
      }
    }
    State state = State.parse(params.get("state"));


Pattern14

    if (StringUtils.isBlank(params.get("error")))
      throw new ParseException("Missing error code");
    String errorURIString = params.get("error_uri");


Pattern15

    String v = params.get("id_token_hint");
    if (StringUtils.isBlank(v))
      throw new ParseException("Missing \"id_token_hint\" parameter");
        postLogoutRedirectURI = new URI(v);
    v = params.get("state");


Pattern16

    if (StringUtils.isBlank(pattern))
      throw new GrokException("{pattern} should not be empty or null");
        namedRegexCollection.put("name" + index, (group.get("subname"!= null ? group.get("subname": group.get("name")));
        namedRegex = StringUtils.replace(namedRegex, "%{" + group.get("name""}""(?<name" + index + ">" + grokPatternDefinition.get(group.get("pattern")) ")");
    if (namedRegex.isEmpty()) {
      throw new GrokException("Pattern not fount");
    }


Pattern17

    if (StringUtils.isBlank(params.get("error")))
      throw new ParseException("Missing error code");
    String errorURIString = params.get("error_uri");
    if (errorURIString != null) {
      
      try {
        errorURI = new URI(errorURIString);
        
      catch (URISyntaxException e) {
    
        throw new ParseException("Invalid error URI: " + errorURIString, e);
      }
    }


Pattern18

    String v = params.get("id_token_hint");
    if (StringUtils.isBlank(v))
    v = params.get("post_logout_redirect_uri");
    if (StringUtils.isNotBlank(v)) {

      try {
        postLogoutRedirectURI = new URI(v);
      catch (URISyntaxException e) {
        throw new ParseException("Invalid \"post_logout_redirect_uri\" parameter: " + e.getMessage(),  e);
      }
    }


Pattern19

    if (StringUtils.isBlank(pattern))
        namedRegexCollection.put("name" + index, (group.get("subname"!= null ? group.get("subname": group.get("name")));
        namedRegex = StringUtils.replace(namedRegex, "%{" + group.get("name""}""(?<name" + index + ">" + grokPatternDefinition.get(group.get("pattern")) ")");
    if (namedRegex.isEmpty()) {
      throw new GrokException("Pattern not fount");
    }


Pattern20

    String v = params.get("client_id");
    if (StringUtils.isBlank(v)) {
      String msg = "Missing \"client_id\" parameter";
      throw new ParseException(msg, OAuth2Error.INVALID_REQUEST.appendDescription(": " + msg));
    }
    if (StringUtils.isNotBlank(v)) {

      try {
        redirectURI = new URI(v);

      catch (URISyntaxException e) {
        String msg = "Invalid \"redirect_uri\" parameter: " + e.getMessage();
        throw new ParseException(msg, OAuth2Error.INVALID_REQUEST.appendDescription(": " + msg),
                           clientID, null, null, e);
      }
    }
    State state = State.parse(params.get("state"));


Pattern21

    if (StringUtils.isBlank(pattern))
        if (group.get("definition"!= null) {
          try {
            addPattern(group.get("pattern"), group.get("definition"));
            group.put("name", group.get("name""=" + group.get("definition"));
          catch (GrokException e) {
            // Log the exeception
          }
        }
        namedRegexCollection.put("name" + index, (group.get("subname"!= null ? group.get("subname": group.get("name")));


Pattern22

    if (StringUtils.isBlank(pattern))
        if (group.get("definition"!= null) {
          try {
            addPattern(group.get("pattern"), group.get("definition"));
            group.put("name", group.get("name""=" + group.get("definition"));
          catch (GrokException e) {
            // Log the exeception
          }
        }
        namedRegexCollection.put("name" + index, (group.get("subname"!= null ? group.get("subname": group.get("name")));


Pattern23

    if (StringUtils.isBlank(pattern))
        if (group.get("definition"!= null) {
          try {
            addPattern(group.get("pattern"), group.get("definition"));
            group.put("name", group.get("name""=" + group.get("definition"));
          catch (GrokException e) {
            // Log the exeception
          }
        }
    if (namedRegex.isEmpty()) {
      throw new GrokException("Pattern not fount");
    }


Pattern24

    if (StringUtils.isBlank(pattern))
        if (group.get("definition"!= null) {
          try {
            addPattern(group.get("pattern"), group.get("definition"));
            group.put("name", group.get("name""=" + group.get("definition"));
          catch (GrokException e) {
            // Log the exeception
          }
        }
        namedRegexCollection.put("name" + index, (group.get("subname"!= null ? group.get("subname": group.get("name")));
        namedRegex = StringUtils.replace(namedRegex, "%{" + group.get("name""}""(?<name" + index + ">" + grokPatternDefinition.get(group.get("pattern")) ")");


Pattern25

    if (StringUtils.isBlank(pattern))
        if (group.get("definition"!= null) {
        namedRegexCollection.put("name" + index, (group.get("subname"!= null ? group.get("subname": group.get("name")));
        namedRegex = StringUtils.replace(namedRegex, "%{" + group.get("name""}""(?<name" + index + ">" + grokPatternDefinition.get(group.get("pattern")) ")");


Pattern26

    if (StringUtils.isBlank(params.get("error")))
    String errorURIString = params.get("error_uri");
    if (errorURIString != null) {
      
      try {
        errorURI = new URI(errorURIString);
        
      catch (URISyntaxException e) {
    
        throw new ParseException("Invalid error URI: " + errorURIString, e);
      }
    }
    State state = State.parse(params.get("state"));


Pattern27

    if (StringUtils.isBlank(pattern))
      if (m.find()) {
        Continue = true;
        Map<String, String> group = m.namedGroups();
        if (group.get("definition"!= null) {
          try {
            addPattern(group.get("pattern"), group.get("definition"));
            group.put("name", group.get("name""=" + group.get("definition"));
          catch (GrokException e) {
            // Log the exeception
          }
        }
        namedRegexCollection.put("name" + index, (group.get("subname"!= null ? group.get("subname": group.get("name")));
        namedRegex = StringUtils.replace(namedRegex, "%{" + group.get("name""}""(?<name" + index + ">" + grokPatternDefinition.get(group.get("pattern")) ")");
        // System.out.println(_expanded_pattern);
        index++;
      }
    if (namedRegex.isEmpty()) {
      throw new GrokException("Pattern not fount");
    }


Pattern28

    if (StringUtils.isBlank(pattern))
      if (m.find()) {
        Continue = true;
        Map<String, String> group = m.namedGroups();
        if (group.get("definition"!= null) {
          try {
            addPattern(group.get("pattern"), group.get("definition"));
            group.put("name", group.get("name""=" + group.get("definition"));
          catch (GrokException e) {
            // Log the exeception
          }
        }
        namedRegexCollection.put("name" + index, (group.get("subname"!= null ? group.get("subname": group.get("name")));
        namedRegex = StringUtils.replace(namedRegex, "%{" + group.get("name""}""(?<name" + index + ">" + grokPatternDefinition.get(group.get("pattern")) ")");
        // System.out.println(_expanded_pattern);
        index++;
      }


Pattern29

    if (StringUtils.isBlank(pattern))
      throw new GrokException("{pattern} should not be empty or null");
        if (group.get("definition"!= null) {
        namedRegex = StringUtils.replace(namedRegex, "%{" + group.get("name""}""(?<name" + index + ">" + grokPatternDefinition.get(group.get("pattern")) ")");
    if (namedRegex.isEmpty()) {
      throw new GrokException("Pattern not fount");
    }


Pattern30

    if (StringUtils.isBlank(pattern))
        if (group.get("definition"!= null) {
          try {
            addPattern(group.get("pattern"), group.get("definition"));
            group.put("name", group.get("name""=" + group.get("definition"));
          catch (GrokException e) {
            // Log the exeception
          }
        }
        namedRegexCollection.put("name" + index, (group.get("subname"!= null ? group.get("subname": group.get("name")));
    if (namedRegex.isEmpty()) {
      throw new GrokException("Pattern not fount");
    }


Pattern31

    if (StringUtils.isBlank(pattern))
        if (group.get("definition"!= null) {
          try {
            addPattern(group.get("pattern"), group.get("definition"));
            group.put("name", group.get("name""=" + group.get("definition"));
          catch (GrokException e) {
            // Log the exeception
          }
        }
        namedRegexCollection.put("name" + index, (group.get("subname"!= null ? group.get("subname": group.get("name")));
    if (namedRegex.isEmpty()) {
      throw new GrokException("Pattern not fount");
    }