private static void forEachMatching(final String pattern, Consumer<RDD<?>> action) {
        final Pattern storagePattern = toRegularExpression(toPattern(Storage.toPath(pattern)));

        for (final RDD<?> rdd : Spark.getRDDs()) {
            if (storagePattern.matcher(Storage.toPath(rdd.name())).matches() ) {
                action.accept( rdd );
            }
        }
    }
@param pattern not null {@link Storage} file system pattern
@param action not null processing of each RDD matching the pattern
spark-gremlin/src/main/java/org/apache/tinkerpop/gremlin/spark/structure/io/SparkContextStorage.java