text: He served as lieutenant-governor in Java and Sumatra , during which time he wrote a History of Java .
  
  ###
  
  While he worked as the lieutenant-governor , he spent his time authoring a History of Java .