docs: private static byte[] consumeByteSourceOrNull(final ByteSource source) {
          try {
              if (source == null || source.isEmpty()) {
                  return null;
              }
              return source.read();
          } catch (final IOException e) {
              LOGGER.warn("Could not consume the byte array source", e);
              return null;
          }
      }