code: public JobExecutionQueryResult get(JobExecutionQuery query)
        throws RemoteInvocationException {
      GetRequest<JobExecutionQueryResult> getRequest = new JobExecutionsBuilders().get()
          .id(new ComplexResourceKey<JobExecutionQuery, EmptyRecord>(query, new EmptyRecord())).build();
  
      Response<JobExecutionQueryResult> response =
          this.restClient.sendRequest(getRequest, ErrorHandlingBehavior.TREAT_SERVER_ERROR_AS_SUCCESS).getResponse();
      return response.getEntity();
    }
docs: Get a {@link org.apache.gobblin.rest.JobExecutionQueryResult} for a {@link org.apache.gobblin.rest.JobExecutionQuery}.
  
  @param query a {@link org.apache.gobblin.rest.JobExecutionQuery}
  @return a {@link org.apache.gobblin.rest.JobExecutionQueryResult}
  @throws RemoteInvocationException