static Map<String, String> findQueryParams(String baseParam, Method method) {
        Map<String, String> hrefVars = new HashMap<>();
        Annotation[][] parameterAnnotations = method.getParameterAnnotations();
        for (int i = 0; i < parameterAnnotations.length; i++) {
            Annotation[] paramAnnotations = parameterAnnotations[i];
            for (Annotation paramAnnotation : paramAnnotations) {
                Class<?> parameterClass = method.getParameterTypes()[i];
                hrefVars.putAll(findQueryParamOnParameter(baseParam, parameterClass, paramAnnotation));
            }
        }
        return hrefVars;
    }
static Map < String , String > findQueryParams ( String baseParam , Method method ) { Map < String , String > hrefVars = new HashMap < > ( ) ; Annotation [ ] [ ] parameterAnnotations = method . getParameterAnnotations ( ) ; for ( int i = 0 ; i < parameterAnnotations . length ; i ++ ) { Annotation [ ] paramAnnotations = parameterAnnotations [ i ] ; for ( Annotation paramAnnotation : paramAnnotations ) { Class < ? > parameterClass = method . getParameterTypes ( ) [ i ] ; hrefVars . putAll ( findQueryParamOnParameter ( baseParam , parameterClass , paramAnnotation ) ) ; } } return hrefVars ; }
Finds query parameters based on {@link javax.ws.rs.QueryParam} annotation.

@param baseParam the base parameter URI
@param method    the method to scan
@return the map of parameter URI by parameter name