private static void ensureDirectories(final Path file) {
        if (file.getParent() != null) {
            try {
                Files.createDirectories(file.getParent());
            } catch (IOException e) {
                throw new RuntimeException("Error creating parent directories for {}"
                                           + file.toAbsolutePath().normalize().toString());
            }
        }
    }
A field populated with a random number (between minCount and maxCount) of
words separated by ' '. The words are picked at random from all the class
names in the 'java' package on the classpath
stroom-test-common/src/main/java/stroom/test/common/data/DataGenerator.java