code: final protected SaltProject executeQuery(WebResource subgraphRes,
      MatchGroup matches, int left, int right, String segmentation,
      SubgraphFilter filter)
    {
      SaltProject p = null;
      WebResource res = subgraphRes.queryParam("left", "" + left).queryParam(
        "right", "" + right);
      try
      {
        if (segmentation != null)
        {
          res = res.queryParam("segmentation", segmentation);
        }
        if (filter != null)
        {
          res = res.queryParam("filter", filter.name());
        }
        p = res.post(SaltProject.class, matches);
      }
      catch (UniformInterfaceException ex)
      {
        log.error(ex.getMessage(), ex);
      }
  
      return p;
    }
docs: Asks for salt graphs with a given list of matches {@link MatchGroup}.
  
  @param subgraphRes Handles the REST connection with the annis service.
  @param matches A list of matches. This implies, that the "find" method of
  the annis-service was executed before.
  @param left The left context.
  @param right The right context.
  @param segmentation restrict results to this segmentations
  @param filter
  @return