code: protected static byte[] getDataCopy(byte[] data, int size) {
          if (data == null) {
              return NO_DATA;
          }
          byte[] newData = new byte[size];
          System.arraycopy(data, 0, newData, 0, size);
          return newData;
      }
docs: Returns a copy of the data array.