protected ResourceConfig createResourceConfig ( WebConfig webConfig ) throws BeansException { return WebApplicationContextUtils . getWebApplicationContext ( webConfig . getServletContext ( ) ) . getBean ( webConfig . getServletConfig ( ) . getInitParameter ( REST_APPLICATION ) , ResourceConfig . class ) ; }
Creates the resource config .