code: @GET
    @Path("rawtext/{top}/{docname}")
    @Produces(MediaType.APPLICATION_XML)
    public RawTextWrapper getRawText(@PathParam("top") String top,
      @PathParam("docname") String docname)
    {
      Subject user = SecurityUtils.getSubject();
      user.checkPermission("query:raw_text:" + top);
  
      RawTextWrapper result = new RawTextWrapper();
      result.setTexts(queryDao.getRawText(top, docname));
      return result;
    }
docs: Fetches the raw text from the text.tab file.
  
  @param top the name of the top level corpus.
  @param docname the name of the document.
  
  @return Can be empty, if the corpus only contains media data or
  segmentations.