How to add a heading to the Endnotes page

I have a 300 page document created with writer with several hundred endnotes at document end. Is it possible to insert a chapter heading at the top of the first page of endnotes, saying “References” or “Endnotes” so that it will be listed in the table of contents?

Refer my answer here.