I was using the Boolean object to convert the integer wasUpdated into a boolean, but callback() requires passing a primitive boolean and the Boolean type is an object, not a boolean, so I have to call the valueOf() method which returns the primitive boolean for this Boolean object. I guess your way is more concise.