sentence: a treaty of alliance was signed in 1808 between the new administration and the balinese king of badung , to provide workers and soldiers for the franco-dutch defensive effort , but java fell to the british in 1811 , and the agreement was not implemented .