Map<ScriptResource, FetchMode> resources = scripts.resolve(ids);
//
for (Map.Entry<ScriptResource, FetchMode> entry : resources.entrySet())
{
ScriptResource resource = entry.getKey();
//
if (!resource.isEmpty())
{
FetchMode mode = entry.getValue();
for (Module module : resource.getModules())
{
if (module instanceof Module.Remote)
{
urls.put(((Module.Remote)module).getURI(), mode);
}
}
controllerContext.renderURL(resource.getParameters(minified, locale), writer);
urls.put(buffer.toString(), mode);
buffer.setLength(0);
writer.reset(buffer);
}
}