The main reason for this class is that Java Card doesn't support multidimensional arrays, but supports array of objects
this.record = data;
record = new byte[size];