private boolean recursiveEquals(final TaskId id, final TaskId ancestorId) {
        if (id == null || ancestorId == null) {
            return false;
        } else if (id.equals(ancestorId)) {
            return true;
        }

        return recursiveEquals(id.getParentId(), ancestorId);
    }
Do not use this constructor directly, instead please use TaskIdFactory.
stroom-core-shared/src/main/java/stroom/task/shared/TaskId.java