@Override
    public void apply(final Traversal.Admin<?, ?> traversal) {
        try {
            verify(traversal);
        } catch (VerificationException ve) {
            if (logWarning)
                LOGGER.warn(ve.getMessage());

            if (throwException)
                throw ve;
        }
    }
Implementations should check the traversal and throw a standard {@link VerificationException} as it would if
it had directly implemented {@link #apply(Traversal.Admin)}. The message provided to the exception will be
used to log a warning and/or the same exception thrown if configured to do so.
gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/strategy/verification/AbstractWarningVerificationStrategy.java