<prompt> Translate the following text to EnglishAlitumikia akiwa naibu gavana katika Java na Sumatra, na wakati huo aliandika Historia ya Java.  <response>: He served as lieutenant-governor in Java and Sumatra, during which time he wrote a History of Java. 