static Set<String> parseResourcePathParams(String resourcePath){
  Matcher matcher=PARAM_URL_REGEX.matcher(resourcePath);
  Set<String> patterns=new LinkedHashSet<>();
  while (matcher.find()) {
    patterns.add(matcher.group(1));
  }
  return patterns;
}

static Set < String > parseResourcePathParams ( String resourcePath ) { Matcher matcher = PARAM_URL_REGEX . matcher ( resourcePath ) ; Set < String > patterns = new LinkedHashSet < > ( ) ; while ( matcher . find ( ) ) { patterns . add ( matcher . group ( 1 ) ) ; } return patterns ; }
gets the set of unique path parameters used in the given uri . if a parameter is used twice in the uri , it will only show up once in the set .
