This story is just a fictional story with a historical-fiction genre, which uses the history of the Nusantara as its background, but with the plot and some changes in characterization for each character according to the author's imagination. So this story is not a historical fact but a fictional story that written to deliver value to the reader.
The purpose of writing this story is to attract the attention and interest of the reader, so the reader could be interested in the actual history. This is done by describing a fictional story with the same background so that the reader has an interest in digging up the actual historical facts through other sources related to actual historical facts.