public byte[] getBytes(String key, byte[] defaultValue) {
    return getRawValue(key)
        .map(
            o -> {
              if (o.getClass().equals(byte[].class)) {
                return (byte[]) o;
              } else {
                throw new IllegalArgumentException(
                    String.format("Configuration cannot evaluate value %s as a byte[] value", o));
              }
            })
        .orElse(defaultValue);
  }
Returns the value associated with the given key as a byte array.

@param key The key pointing to the associated value.
@param defaultValue The default value which is returned in case there is no value associated
    with the given key.
@return the (default) value associated with the given key.
amoro-common/src/main/java/org/apache/amoro/config/Configurations.java