It's possible to avoid a couple of lines of boilerplate around declaring the byte[] array 'result' - compare with the equivalent code in patch set 5, where it just uses the BinaryDelta.apply(data, cmds) method, and has the same effect regarding the OOM check