code: public static void resolve() {
          try {
              getFutureContext().resolveAll();
          } catch (ExecutionException | InterruptedException | TimeoutException ex) {
              LOGGER.error("Exception during resolving", ex);
              throw new SystemException("Error thrown during resolve", ex);
          }
      }
docs: Resolves all registered {@code Future}'s to this thread and invokes all
  {@code Consumer}'s using retrieved result. This method wraps every
  exception thrown by {@code future} in {@link SystemException}.
  
  Regardless of success or exception every registered {@code future} and
  {@code consumer} are removed from context.