protected AsyncTask getTask(final AcceptedRequestDto<String> acceptedRequest) {
RESTLink taskLink = acceptedRequest.getStatusLink();
checkNotNull(taskLink, ValidationErrors.MISSING_REQUIRED_LINK + AsyncTask.class);
// This will return null on untrackable tasks
TaskDto task = context.getApi().getTaskApi().getTask(taskLink);
return wrap(context, AsyncTask.class, task);
}