code: private List<JobExecutionInfo> executeQuery(JobExecutionQuery query) throws RemoteInvocationException {
      JobExecutionQueryResult result = this.client.get(query);
  
      if (result != null && result.hasJobExecutions()) {
        return result.getJobExecutions();
      }
      return Collections.emptyList();
    }
docs: Execute a query and coerce the result into a java List
  @param query Query to execute
  @return List of jobs that matched the query. (Empty list if none did).
  @throws RemoteInvocationException If the server throws an error