code: @Override
      public Class<?> getInvokedBusinessInterface() throws IllegalStateException {
          // Determine if in valid state for this method.
          boolean validState = false;
          int stateCopy;
          synchronized (this) {
              stateCopy = state;
              validState = (state == POOLED) || (state == IN_METHOD);
          }
  
          if (validState) {
              // Valid state, so perform function.
              return super.getInvokedBusinessInterface();
          } else {
              // Invalid state, so throw IllegalStateException.
              String stateString = getStateName(stateCopy);
              if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
                  Tr.debug(tc, "Incorrect state: " + stateString);
              throw new IllegalStateException(stateString);
          }
      }
docs: d367572.1 added entire method.