code: public static final StreamConfig decode(String scope, String streamName, final StreamConfiguration configModel) {
          Preconditions.checkNotNull(configModel, "configModel");
          final StreamConfig.Builder builder = StreamConfig.newBuilder()
                  .setStreamInfo(createStreamInfo(scope, streamName))
                  .setScalingPolicy(decode(configModel.getScalingPolicy()));
          if (configModel.getRetentionPolicy() != null) {
              builder.setRetentionPolicy(decode(configModel.getRetentionPolicy()));
          }
          return builder.build();
      }
docs: Converts StreamConfiguration into StreamConfig.
  
  @param scope the stream's scope
  @param streamName The Stream Name
  @param configModel The stream configuration.
  @return StreamConfig instance.