code:     protected void setUpResources(JAXRSServerFactoryBean sf) {
          sf.setResourceClasses(TikaResource.class);
          sf.setResourceProvider(TikaResource.class,
                  new SingletonResourceProvider(new TikaResource()));
      }
  
      @Override
  