}
// get the ScaDomainScriptServlet, if it doesn't yet exist create one
// this uses removeServletMapping / addServletMapping as theres no getServletMapping facility
domainScriptMapping = URI.create("http://localhost:" + port + SCA_DOMAIN_SCRIPT).toString();
ScaDomainScriptServlet scaDomainServlet =
(ScaDomainScriptServlet)servletHost.getServletMapping(domainScriptMapping);
if (scaDomainServlet == null) {
scaDomainServlet = new ScaDomainScriptServlet();
servletHost.addServletMapping(domainScriptMapping, scaDomainServlet);
}
// Add this service to the scadomain script servlet
scaDomainServlet.addService(binding.getName());
}