This should be calling createLiteral as the code does in addHeaderFooter()