[Java] Drop restriction that the max message size is limited to 2^16.