code: static Map<String, String> findPathParams(String baseParam, Method method) {
          Map<String, String> hrefVars = new HashMap<>();
          for (Annotation[] paramAnnotations : method.getParameterAnnotations()) {
              for (Annotation paramAnnotation : paramAnnotations) {
                  if (paramAnnotation.annotationType().equals(PathParam.class)) {
                      String varName = ((PathParam) paramAnnotation).value();
                      addHrefVar(baseParam, hrefVars, varName);
                  }
              }
          }
          return hrefVars;
      }
docs: Finds path parameters based on {@link javax.ws.rs.PathParam} annotation.
  
  @param baseParam the base parameter URI
  @param method    the method to scan
  @return the map of parameter URI by parameter name