code: @SuppressWarnings("unchecked")
      protected void triggerDone(Response<T> resolved) {
          for (io.reinert.gdeferred.DoneCallback<T> callback : getDoneCallbacks()) {
              try {
                  if (callback instanceof DoneCallback) {
                      ((DoneCallback) callback).onDone(resolved);
                  } else {
                      callback.onDone(resolved.getPayload());
                  }
              } catch (Exception e) {
                  log.log(Level.SEVERE, "An uncaught exception occurred in a DoneCallback", e);
              }
          }
      }
docs: ===================================================================