List providers = new ArrayList();
providers.add(new TarWriter());
providers.add(new ZipWriter());
providers.add(new TikaExceptionMapper());
providers.add(new SingletonResourceProvider(new MetadataResource()));
providers.add(new SingletonResourceProvider(new TikaResource()));
providers.add(new SingletonResourceProvider(new UnpackerResource()));
providers.add(new SingletonResourceProvider(new TikaVersion()));
sf.setProviders(providers);
sf.setAddress("http://localhost:" + TikaServerCli.DEFAULT_PORT + "/");
BindingFactoryManager manager = sf.getBus().getExtension(
BindingFactoryManager.class);
JAXRSBindingFactory factory = new JAXRSBindingFactory();