synchronized (tomcatHost) {
servlet = (JSONRPCEntryPointServlet) tomcatHost.getMapping(jsonrpcServletMapping);
if (servlet == null) {
servlet = new JSONRPCEntryPointServlet();
tomcatHost.registerMapping(jsonrpcServletMapping, servlet);
tomcatHost.registerMapping(webAppName + "/SCA/scripts/*", new ScriptGetterServlet());
}
}
return servlet;
}