sf.setResourceClasses(BookCatalog.class);
sf.setResourceProvider(BookCatalog.class, new SingletonResourceProvider(new BookCatalog()));
sf.setAddress("http://localhost:" + PORT + "/");
sf.setProperties(properties);
sf.setProvider(new MultipartProvider());
sf.setProvider(new SearchContextProvider());
sf.setProvider(new JacksonJsonProvider());
sf.create();
}