private void doTerminate(final TaskProgress taskProgress) {
        final FindTaskCriteria findTaskCriteria = new FindTaskCriteria();
        findTaskCriteria.addId(taskProgress.getId());
        final TerminateTaskProgressRequest request = new TerminateTaskProgressRequest(findTaskCriteria);
        restFactory
                .create(TASK_RESOURCE)
                .method(res -> res.terminate(taskProgress.getNodeName(), request))
                .taskMonitorFactory(getView())
                .exec();
    }
This sets the name filter to be used when fetching items. This method
returns false is the filter is set to the same value that is already set.

@param name
@return
stroom-core-client/src/main/java/stroom/task/client/presenter/TaskManagerListPresenter.java