// Determine the service business interface
Class<?> serviceInterface = getTargetJavaClass(service.getInterfaceContract().getInterface());
// Create a Java proxy to the target service
ProxyFactory proxyFactory = new JDKProxyFactory();
Object proxy = proxyFactory.createProxy(serviceInterface, service.getRuntimeWire(binding));
// Create and register a servlet for this service
JSONRPCServiceServlet serviceServlet = new JSONRPCServiceServlet(binding.getName(), serviceInterface, proxy);
int port;
servletHost.addServletMapping(binding.getURI(), serviceServlet);