@Override
  public ObjectName preRegister(MBeanServer server, ObjectName name) throws Exception {
    if (m_canBeRegistered) {
      m_mbeanServer = server;
      return name;
    } else {
      throw new MBeanRegistrationException(new IllegalStateException(
          "ModelMBean cannot be registered until setModelMBeanInfo has been called."));
    }
  }
@author <a href="mailto:biorn_steedom@users.sourceforge.net">Simone Bordet</a>
@version $Revision: 1.14 $
geode-core/src/main/java/org/apache/geode/admin/jmx/internal/MX4JModelMBean.java