code: @Override
      public boolean isActive() {
          if (tc.isEntryEnabled())
              Tr.entry(tc, "isActive", this);
  
          boolean isActive = false;
  
          try {
              switch (ut.getStatus()) {
                  case Status.STATUS_ACTIVE:
                  case Status.STATUS_MARKED_ROLLBACK:
                  case Status.STATUS_PREPARED:
                  case Status.STATUS_UNKNOWN:
                  case Status.STATUS_PREPARING:
                  case Status.STATUS_COMMITTING:
                  case Status.STATUS_ROLLING_BACK:
                      isActive = true;
                      break;
                  default:
                      isActive = false;
              }
          } catch (Exception e) {
              // drop through
          }
  
          if (tc.isEntryEnabled())
              Tr.exit(tc, "isActive", isActive);
  
          return isActive;
      }
docs: /*
  (non-Javadoc)
  
  @see javax.enterprise.context.spi.Context#isActive()