public ServiceHandler activateBinding(QName name, BindingModel config) {
RESTEasyBindingModel binding = (RESTEasyBindingModel)config;
binding.setEnvironment(_environment);
if (binding.isServiceBinding()) {
return new InboundHandler(binding, getServiceDomain());
} else {
return new OutboundHandler(binding, getServiceDomain());
}
}