+ ObjectName onName = on;
+ // if on is without transaction, add it. Reason is that when using getters on MXBeans the transaction name is stripped
+ onName = ObjectNameUtil.withTransactionName(onName, getTransactionName());
+ // if this is service reference and user requests for implementation, look it up
+ onName = ConfigRegistryJMXClient.translateServiceRefIfPossible(onName, clazz, configMBeanServer);
+ onName = ObjectNameUtil.withTransactionName(onName, getTransactionName());
+ return JMX.newMXBeanProxy(configMBeanServer, onName, clazz);
+ }
+
+ /**
+ * Usage of this method indicates error as config JMX uses solely MXBeans.
+ * Use {@link #newMXBeanProxy(javax.management.ObjectName, Class)}
+ * or {@link JMX#newMBeanProxy(javax.management.MBeanServerConnection, javax.management.ObjectName, Class)}
+ * This method will be removed soon.
+ */
+ @Deprecated