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