code: @Override
      public final void reportLocalError()
      {
          if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
              SibTr.entry(this, tc, "reportLocalError");
  
          // Only need to set to LOCAL_ERROR
          // if we are currently OK. We don't want
          // to overwrite a GLOBAL_ERROR.
          if (_healthState.isOK())
          {
              _healthState = JsHealthState.getLocalError();
          }
  
          if (_healthMonitor == null)
          {
              if (_messagingEngine != null && _messagingEngine instanceof JsHealthMonitor)
              {
                  _healthMonitor = (JsHealthMonitor) _messagingEngine;
                  _healthMonitor.reportLocalError();
              }
          }
          else
          {
              _healthMonitor.reportLocalError();
          }
  
          if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
              SibTr.entry(this, tc, "reportLocalError");
      }
docs: /*
  JsMonitoredComponent Implementation