class ContextUtils {

  public static InvocationContext getFromCompletableFuture(CompletableFuture<?> future) {
    if (future instanceof InvocationContextCompletableFuture) {
      return ((InvocationContextCompletableFuture<?>) future).getContext();
    }

    return null;
  }

  private  ContextUtils();

}