String serviceCounterName = buffer.toString();
try {
ObjectName serviceCounter =
new ObjectName(serviceCounterName);
cr.increaseCounter(serviceCounter, mhtr);
if (operationName != null) {
buffer.append("," + ManagementConstants.OPERATION_NAME_PROP + "=" + operationName);
String operationCounterName = buffer.toString();
ObjectName operationCounter = new ObjectName(operationCounterName);
cr.increaseCounter(operationCounter, mhtr);