@Override
    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof TaskId)) {
            return false;
        }

        final TaskId taskId = (TaskId) o;
        return id.equals(taskId.id);
    }
Do not use this constructor directly, instead please use TaskIdFactory.
stroom-core-shared/src/main/java/stroom/task/shared/TaskId.java