BAL Java implementation