@Override
  public void setTaskState(@NotNull Task task, @NotNull CustomTaskState state) throws Exception {
    final URI url = new URIBuilder(getRestApiUrl("cards", task.getId(), "idList")).addParameter("value", state.getId()).build();
    final HttpResponse response = getHttpClient().execute(new HttpPut(url));
    if (response.getStatusLine() != null &&
        response.getStatusLine().getStatusCode() == HttpStatus.SC_UNAUTHORIZED &&
        EntityUtils.toString(response.getEntity()).trim().equals("unauthorized card permission requested")) {
      throw new Exception(TaskBundle.message("trello.failure.write.access.required"));
    }
  }
@Override
  public void setTaskState(@NotNull Task task, @NotNull CustomTaskState state)