docs: @Override
      public boolean wasCancelCalled() // F743-11774
      {
          EJSDeployedSupport methodContext = EJSContainer.getMethodContext();
          ServerAsyncResult asyncResult = methodContext == null ? null : methodContext.ivAsyncResult;
  
          if (asyncResult == null)
          {
              if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
                  Tr.debug(tc, "wasCancelCalled : IllegalStateException : " +
                               "Not invoked from an asynchronous method with results");
  
              throw new IllegalStateException("Not invoked from an asynchronous method with results");
          }
  
          boolean result = asyncResult.wasCancelCalled();
  
          if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
              Tr.debug(tc, "wasCancelCalled : " + result);
  
          return result;
      }