public class Main {
protected Main() throws Exception {
RuntimeDelegate delegate = RuntimeDelegate.getInstance();
JAXRSServerFactoryBean bean = delegate.createEndpoint(new MyApplication(),
JAXRSServerFactoryBean.class);
// List<Object> providerList = new ArrayList<Object>();
// providerList.add(new org.codehaus.jackson.jaxrs.JacksonJsonProvider());
// bean.setProviders(providerList);