code: public static Map<String, QueryParameter> getParentDependentParameters(List<QueryParameter> params, QueryParameter p) {
          List<String> names = p.getDependentParameterNames();
          Map<String, QueryParameter> result = new HashMap<String, QueryParameter>();
          for (String name : names) {        	
              result.put(name, getParameterByName(params, name));
          }
          return result;
      }
docs: Get parent dependent parameters
  
  @param params list of parameters
  @param p      current parameter
  @return a map of all parameters that are used in the source definition of the current parameter