try
{
final StringResponse response = new StringResponse();
this.getRequestCycle().setResponse(response);
IHeaderResponse headerResponse = getHeaderResponse();
if (!response.equals(headerResponse.getResponse()))
{
this.getRequestCycle().setResponse(headerResponse.getResponse());
}
// In any case, first render the header section directly associated
// with the markup
super.onComponentTagBody(markupStream, openTag);