sentence: outside the indian subcontinent , in indonesia , a version was developed in ancient java as kakawin bhāratayuddha in the 11th century under the patronage of king dharmawangsa ( 990-1016 ) , and later it spread to neighboring island of bali where today remains a hindu majority island , despite today indonesia is the most populous muslim majority nation .