private long getLatestStreamId() {
        final List<Meta> list = metaService.find(new FindMetaCriteria()).getValues();
        if (list == null || list.size() == 0) {
            return 0;
        }
        list.sort(Comparator.comparing(Meta::getId));
        final Meta latest = list.get(list.size() - 1);
        return latest.getId();
    }
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