Enabled promises in java client