Location location = new Location();
location.readExternal(dataIn);
AMQTx result = new AMQTx(location);
int size = dataIn.readInt();
for (int i = 0; i < size; i++) {
AMQTxOperation op = new AMQTxOperation();
op.readExternal(wireFormat, dataIn);
result.getOperations().add(op);
}
return result;
}