perRequestResourceList.add(PropertiesResource.class);
// add any additional per-request resources
bean.setResourceClasses(perRequestResourceList);
List singletonRequestList = new ArrayList();
singletonRequestList.add(new SingletonResourceProvider(new MapResource()));
// add any more singleton root resources
bean.setResourceProviders(singletonRequestList);
List<Object> providerList = new ArrayList<Object>();
providerList.add(new FormReader());