code: public static boolean checkForParametersWithDefaultSource(Report report) {
      	Map<String, QueryParameter> params = getUsedParametersMap(report);
          for (QueryParameter qp : params.values()) {
          	if ((qp.getDefaultSource() != null) && !qp.getDefaultSource().equals("")) {
          		return true;
          	}
          }
          return false;
      }
docs: Check if report has at least a parameter with a default source (will need a connection to get values)
  
  @param report report
  @return true if there is at least a parameter with a default source