public Optional<Map<String,Object>> getParameters() {
        return Optional.ofNullable(parameters.isEmpty() ? null : parameters.entrySet().stream().collect(Collectors.toMap(Map.Entry::getValue, Map.Entry::getKey)));
    }
General representation of script

@author Stark Arya (sandszhou.zj@alibaba-inc.com)
gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/Script.java