JavaInterfaceContract interfaceContract = javaFactory.createJavaInterfaceContract();
interfaceContract.setInterface(javaInterface);
resourceService.setInterfaceContract(interfaceContract);
// Configure the resource service with a default HTTP resource binding
HTTPResourceBinding resourceBinding = bindingFactory.createHTTPResourceBinding();
resourceService.getBindings().add(resourceBinding);
}