private void write(final Path file, final String data) {
        // We need to remove event id's because they change every time.
        final String tmp = data.replaceAll("<Event Id=\"[^\"]+\"", "<Event");
        StreamUtil.stringToFile(tmp, file);
    }
Gets the next task to be processed.

@return The next task or null if there are currently no more tasks.
stroom-app/src/test/java/stroom/pipeline/task/TranslationTest.java