Nowadays the Indonesian law requires at least two words for the person's full name, and the full name is regarded as a single entity no matter how many words it contains. Older generations of Javanese, having only a single name, usually duplicate it - I have seen such duplicate names in official Indonesian documents.