private String buildStrategyArgs(final Object[] arguments) {
        final StringBuilder sb = new StringBuilder();
        for (int i = 0; i < arguments.length; i++) {
            // special handling for OptionsStrategy
            if (arguments[i] instanceof OptionsStrategy) {
                optionsStrategies.add((OptionsStrategy) arguments[i]);
                break;
            }

            Configuration configuration;
            String strategyName;

            // special handling for TraversalStrategyProxy
            if (arguments[i] instanceof TraversalStrategyProxy) {
                configuration = ((TraversalStrategy) arguments[i]).getConfiguration();
                strategyName = ((TraversalStrategyProxy) arguments[i]).getStrategyName();
            } else {
                configuration = ((TraversalStrategy) arguments[i]).getConfiguration();
                strategyName = arguments[i].getClass().getSimpleName();
            }

            if (configuration.isEmpty()) {
                sb.append(strategyName);
            } else {
                sb.append("new ")
                        .append(strategyName)
                        .append("(");

                configuration.getKeys().forEachRemaining(key -> {
                    if (!key.equals("strategy")) {
                        sb.append(key).append(":").append(argAsString(configuration.getProperty(key))).append(",");
                    }
                });
                // remove last comma
                if (sb.lastIndexOf(",") == sb.length() - 1) {
                    sb.setLength(sb.length() - 1);
                }

                sb.append(')');
            }

            if (i != arguments.length - 1)
                sb.append(',');
        }

        return sb.toString();
    }
Add a {@link TraversalSource} instruction to the GremlinLang.

@param sourceName the traversal source method name (e.g. withSack())
@param arguments  the traversal source method arguments
gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/GremlinLang.java