public void postRegister(Boolean registrationDone) {
try {
if (getComponent().getStatistics() != null) {
statsName = new ObjectName(objectName.getDomain()
+ ":type=statistics,name=" + getName());
<BUG>if (this.server.queryNames(statsName, null).size() != 0) {
this.server.unregisterMBean(statsName);</BUG>
}
this.server.registerMBean(new ComponentStats(getComponent()
.getStatistics()), this.statsName);

public void postRegister(Boolean registrationDone) {
try {
if (getComponent().getStatistics() != null) {
statsName = new ObjectName(objectName.getDomain()
+ ":type=statistics,name=" + getName());
if (this.server.isRegistered(statsName)) {
this.server.unregisterMBean(statsName);
}
this.server.registerMBean(new ComponentStats(getComponent()
.getStatistics()), this.statsName);
