Wikipedia
Sri Mapanji Jayabaya, Varmesvara, or Jayabhaya, ( Javanese spelled: Ratu Joyoboyo) was Javanese King of the Kediri in East Java from 1135 to 1179 CE.
King Jayabaya is creditied with reunification of the Kediri kingdom following a split due to the death of his predecessor Airlangga. King Jayabaya was known for his just and prosperous rule, and reputed to have been an incarnation of the Hindu deity Vishnu. King Jayabaya epitomized the archetypal Ratu Adil: the just king reborn in the dark age of suffering "Jaman Edan" to restore the Jaman Raharja: social justice, order, and harmony in the world, as Javanese believed in a cyclical history of alternating prosperity epochs of (Jaman Raharja) followed an era of suffering (Jaman edan), to cycle back to an era of prosperity (Jaman Raharja).
Jabaya termed his kingdom Widarba, meaning a thousand cities in Pamenang, modern Kediri Regency. Intertwined between fact and myth are records that his father Gendrayana, claimed to be a descendant of Pandavas as being son of Yudayana: the son of Parikshit: the son of Abhimanyu: the son of Arjuna from the family Pandavas. From Jayaba's queen consort Dewi Sara wife were born all daughters Dewi Jayaamijaya, Pramesti Dewi, Dewi Pramuni and Dewi Sasanti. Queen Dewi Jayaamijaya was married to King consort Astradarma Pramesti Yawastina king and birthed King of Anglingdarma: Malawapati.
Jayabaya abdicated in old age and sought a life of meditation as a Hindu recluse, informing a moksha he was the incarnation of vishnu, in the village of Menang, in Pagu sub-district of Kediri Regency, until the modern era still considered a sacred pilgrimage site, according to Kejawen belief system. Sukarno and Suharto both meditated at length in Menang to attain an air of kingly legitimacy, supernatural abilities, Jayabaya's blessings and/or powers.