public Builder enumImports(final Collection<String> enums) {
            for (String enumItem : enums) {
                try {
                    if (enumItem.endsWith("#*")) {
                        final String classString = enumItem.substring(0, enumItem.length() - 2);
                        final Class<?> clazz = Class.forName(classString);
                        enumImports.addAll(allEnums(clazz));
                    } else {
                        final Matcher matcher = ENUM_PATTERN.matcher(enumItem);

                        if (!matcher.matches())
                            throw new IllegalArgumentException(String.format("Could not read enum descriptor - check format of: %s", enumItem));

                        final String classString = matcher.group(1);
                        final String enumValString = matcher.group(2);
                        final Class<?> clazz = Class.forName(classString);

                        Stream.of(clazz.getEnumConstants())
                                .filter(e -> ((Enum) e).name().equals(enumValString))
                                .findFirst().ifPresent(e -> enumImports.add((Enum) e));
                    }
                } catch (IllegalArgumentException iae) {
                    throw iae;
                } catch (Exception ex) {
                    throw new IllegalStateException(ex);
                }
            }
            return this;
        }
The name of the {@link GremlinScriptEngine} that this module will apply to. Setting no values here will
make the module available to all the engines.
gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/jsr223/ImportGremlinPlugin.java