Configured the ResponseContent object to have a header and footer and the session to write them if not null.