docs: public void doSuggest(StaplerRequest req, StaplerResponse rsp, @QueryParameter String query) throws IOException, ServletException {
          Result r = new Result();
          for (SuggestedItem item : getSuggestions(req, query))
              r.suggestions.add(new Item(item.getPath()));
  
          rsp.serveExposedBean(req,r,Flavor.JSON);
      }