//If we found both fields then try and clear the maps.
if (this.recordMetricMapField != null && this.registryMetricMapField != null) {
try {
Map recordMap = (Map) this.recordMetricMapField.get(this.metricsRecord);
recordMap.clear();
Map registryMap = (Map) this.registryMetricMapField.get(this.registry);
registryMap.clear();
} catch (IllegalArgumentException e) {
LOG.debug(UNABLE_TO_CLEAR);
} catch (IllegalAccessException e) {