BeanDefinitionBuilder.genericBeanDefinition(HttpInvokerServiceExporter.class).
addPropertyValue("service", copperMonitoringService).
addPropertyValue("serviceInterface", CopperMonitoringService.class.getName()).
addPropertyValue("remoteInvocationExecutor", remoteInvocationExecutor).
getBeanDefinition());
genericWebApplicationContext.refresh();
DispatcherServlet dispatcherServlet = new DispatcherServlet(genericWebApplicationContext);
ServletHolder servletHolder = new ServletHolder(dispatcherServlet);
servletContextHandler.addServlet(servletHolder, "/*");