private static boolean thereIsMatching(final String pattern) {
        final Pattern storagePattern = toRegularExpression(toPattern(Storage.toPath(pattern)));

        for (final RDD<?> rdd : Spark.getRDDs()) {
            if (storagePattern.matcher(Storage.toPath(rdd.name())).matches() ) {
                return true;
            }
        }
        return false;
    }
@param pattern not null {@link Storage} file system pattern
@return true if there is at least one RDD matching the pattern
spark-gremlin/src/main/java/org/apache/tinkerpop/gremlin/spark/structure/io/SparkContextStorage.java