code: private void checkAndVerifyWork(Work work, ExecutionContext executionContext) throws WorkException
     {
        if (specCompliant)
        {
           verifyWork(work);
        }
  
        if (work instanceof WorkContextProvider && executionContext != null)
        {
           //Implements WorkContextProvider and not-null ExecutionContext
           throw new WorkRejectedException(bundle.workExecutionContextMustNullImplementsWorkContextProvider());
        }
     }
docs: Check and verify work before submitting.
  @param work the work instance
  @param executionContext any execution context that is passed by apadater
  @throws WorkException if any exception occurs