// out.println("function scaDomain() { }");
// out.println();
// out.println("// SCA services");
// Use the DWR remoter to generate the JavaScipt function for each SCA service
Remoter remoter = (Remoter)getContainer().getBean(Remoter.class.getName());
for (String serviceName : serviceRefs.keySet()) {
String path = request.getServletPath() + "/" + serviceName;
String serviceScript = remoter.generateInterfaceScript(serviceName, path);
out.println(serviceScript);
out.println("SCA.componentContext.serviceNames.push('" + serviceName + "');");
out.println("SCA.componentContext.serviceProxys.push(" + serviceName + ");");
// ServiceHolder s = services.get(serviceName);
// final Class<?> iface = ((JavaInterface)s.cr.getInterfaceContract().getInterface()).getJavaClass();