code: public final ResourceException isValid(int newAction) {
          try {
              setState(newAction, true);
          } catch (TransactionException exp) {
              FFDCFilter.processException(exp, "com.ibm.ws.rsadapter.spi.WSStateManager.isValid", "385", this);
              return exp;
          }
  
          return null;
      }
docs: If the action is valid return null. Otherwise return a
  TransactionException with the cause.
  
  @param newAction
  int
  @return TransactionException