Fixed Java communication