/** render the given embedded task (recursively) */
private void renderEmbedded(EmbeddedRenderTask t, Map<String, String[]> reqParams, RequestHandler request, List<EmbeddedContent> embeddedContent) {
for (EmbeddedRenderTask ert : t.dependsOn())
renderEmbedded(ert, reqParams, request, embeddedContent);
PostAction po = render(t, reqParams, request, null, "embedded/");
if (po instanceof StRenderPostAction)
embeddedContent.add(new EmbeddedContent(t, (StRenderPostAction) po));
else
throw new RuntimeException("EmbeddedRenderTask returned unsupported PostAction " + po);
}