}
// Unregister the service from the scaDomain script servlet
ScaDomainScriptServlet scaDomainServlet = (ScaDomainScriptServlet) servletHost.getServletMapping(domainScriptMapping);
if (scaDomainServlet != null) {
scaDomainServlet.removeService(binding.getName());
// Remove the servlet if there's no more registered services
if (scaDomainServlet.getServiceNames().isEmpty()) {
servletHost.removeServletMapping(domainScriptMapping);
}