sentence1: He ruled the non-Portuguese community with Malay kapitan headmen and the foreigners' shahbandar harbor-masters.
sentence2: He was not able to rule so Malay kapitan headmen and shahbandar harbor masters came in to fulfill the duty.