@Override
    public String getProgram(final String... statements) {
        final StringBuilder program = new StringBuilder();

        for (String statement : statements) {
            program.append(statement).append(System.lineSeparator());
        }

        return program.toString();
    }
Statements are concatenated together by a line feed.
gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/jsr223/AbstractGremlinScriptEngineFactory.java