core/src/main/java/com/datastax/dse/driver/internal/core/graph/GraphConversions.java [88:112]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      GraphStatement<?> statement,
      GraphProtocol subProtocol,
      DriverExecutionProfile config,
      InternalDriverContext context,
      GraphBinaryModule graphBinaryModule) {

    final List<ByteBuffer> encodedQueryParams;
    if (!(statement instanceof ScriptGraphStatement)
        || ((ScriptGraphStatement) statement).getQueryParams().isEmpty()) {
      encodedQueryParams = Collections.emptyList();
    } else {
      try {
        Map<String, Object> queryParams = ((ScriptGraphStatement) statement).getQueryParams();
        if (subProtocol.isGraphBinary()) {
          Buffer graphBinaryParams = graphBinaryModule.serialize(queryParams);
          encodedQueryParams = Collections.singletonList(graphBinaryParams.nioBuffer());
          graphBinaryParams.release();
        } else {
          encodedQueryParams =
              Collections.singletonList(
                  GraphSONUtils.serializeToByteBuffer(queryParams, subProtocol));
        }
      } catch (IOException e) {
        throw new UncheckedIOException(
            "Couldn't serialize parameters for GraphStatement: " + statement, e);
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



core/src/main/java/com/datastax/dse/driver/internal/core/graph/GraphConversions.java [156:180]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      GraphStatement<?> statement,
      GraphProtocol subProtocol,
      DriverExecutionProfile config,
      InternalDriverContext context,
      GraphBinaryModule graphBinaryModule) {

    final List<ByteBuffer> encodedQueryParams;
    if (!(statement instanceof ScriptGraphStatement)
        || ((ScriptGraphStatement) statement).getQueryParams().isEmpty()) {
      encodedQueryParams = Collections.emptyList();
    } else {
      try {
        Map<String, Object> queryParams = ((ScriptGraphStatement) statement).getQueryParams();
        if (subProtocol.isGraphBinary()) {
          Buffer graphBinaryParams = graphBinaryModule.serialize(queryParams);
          encodedQueryParams = Collections.singletonList(graphBinaryParams.nioBuffer());
          graphBinaryParams.release();
        } else {
          encodedQueryParams =
              Collections.singletonList(
                  GraphSONUtils.serializeToByteBuffer(queryParams, subProtocol));
        }
      } catch (IOException e) {
        throw new UncheckedIOException(
            "Couldn't serialize parameters for GraphStatement: " + statement, e);
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



