docs: public static byte[] encodeSourceData(DbFileSources.Data data) {
      ByteArrayOutputStream byteOutput = new ByteArrayOutputStream();
      LZ4BlockOutputStream compressedOutput = new LZ4BlockOutputStream(byteOutput);
      try {
        data.writeTo(compressedOutput);
        compressedOutput.close();
        return byteOutput.toByteArray();
      } catch (IOException e) {
        throw new IllegalStateException("Fail to serialize and compress source data", e);
      } finally {
        IOUtils.closeQuietly(compressedOutput);
      }
    }