// footer.css
GroupingHeaderResponse groupingHeaderResponse = new GroupingHeaderResponse(response);
// use this header resource decorator to load all JavaScript resources in the page
// footer (after </body>)
JavaScriptFilteredIntoFooterHeaderResponse javaScriptFooterResponse = new JavaScriptFilteredIntoFooterHeaderResponse(
response, "footerJS");
// finally use one that delegates to the two above
return new GroupingAndFilteringHeaderResponse(groupingHeaderResponse,
javaScriptFooterResponse);