code: public static final StreamConfiguration encode(final StreamConfig config) {
          Preconditions.checkNotNull(config, "config");
          return StreamConfiguration.builder()
                  .scalingPolicy(encode(config.getScalingPolicy()))
                  .retentionPolicy(encode(config.getRetentionPolicy()))
                  .build();
      }
docs: Helper to convert StreamConfig into Stream Configuration Impl.
  
  @param config The StreamConfig
  @return New instance of StreamConfiguration Impl.