Add toString on ResourceComponent
SONAR-5006 Deprecate some methods of SensorContext