@Override
  public void setModelMBeanInfo(ModelMBeanInfo modelMBeanInfo)
      throws MBeanException, RuntimeOperationsException {
    if (modelMBeanInfo == null) {
      throw new RuntimeOperationsException(new IllegalArgumentException(
          "ModelMBeanInfo cannot be null."));
    }
    if (!isModelMBeanInfoValid(modelMBeanInfo)) {
      throw new RuntimeOperationsException(new IllegalArgumentException(
          "ModelMBeanInfo is invalid."));
    }

    m_modelMBeanInfo = (ModelMBeanInfo) modelMBeanInfo.clone();

    Logger logger = getLogger();
    if (logger.isEnabledFor(Logger.DEBUG)) {
      logger.debug("ModelMBeanInfo successfully set to: " + m_modelMBeanInfo);
    }
    // Only now the MBean can be registered in the MBeanServer
    m_canBeRegistered = true;
  }
@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