Application providing renderlets for resources that are also of type HeadedPage must set the template mode to "naked" or ending with "-naked" as they cannot ensure otherwise that the template is used and not the template for headedpage. A typical symptom of the HeadedPage being selected instead of a nested template for another type is a "java.lang.RuntimeException: Expected at most one head in html document".
reto
