code: @Override
  	public Promise<QueryResult> query(CubeQuery cubeQuery) throws QueryException {
  		DefiningClassLoader queryClassLoader = getQueryClassLoader(new CubeClassLoaderCache.Key(
  				new LinkedHashSet<>(cubeQuery.getAttributes()),
  				new LinkedHashSet<>(cubeQuery.getMeasures()),
  				cubeQuery.getWhere().getDimensions()));
  		long queryStarted = eventloop.currentTimeMillis();
  		return new RequestContext<>().execute(queryClassLoader, cubeQuery)
  				.whenComplete((queryResult, e) -> {
  					if (e == null) {
  						queryTimes.recordValue((int) (eventloop.currentTimeMillis() - queryStarted));
  					} else {
  						queryErrors++;
  						queryLastError = e;
  
  						if (e instanceof NoSuchFileException) {
  							logger.warn("Query failed because of NoSuchFileException. " + cubeQuery.toString(), e);
  						}
  					}
  				});
  	}
docs: region temp query() method