public static void main(String... args) {
   AppInit init = new AppInit();
   String urlWebservice = init.getUrlWebservice();
   JAXRSServerFactoryBean sf = new JAXRSServerFactoryBean();
   sf.setResourceClasses(StocksWebServiceRestImpl.class, MarketWebServiceRestImpl.class);
   sf.setAddress(urlWebservice);
   sf.create();
 }