private Object findGenericConfigBean(ObjectName objectName, String instanceName)
{
/* Ordinary Config Mbean - use ConfigMBeanNaming */
Object bean = null;
ConfigMBeanNamingInfo mbeanInfo = null;
try
{
mbeanInfo = new ConfigMBeanNamingInfo(objectName);
}
catch (MBeanConfigException mce)
{
_logger.log(Level.FINE, "mbean.config.admin.naming_not_found",
new Object[]{objectName.toString(), mce.getLocalizedMessage()} );
}
if(mbeanInfo!=null)
{
String xPath = mbeanInfo.getXPath();
try
{
ConfigContext ctx = getConfigContext(instanceName);
bean = ConfigBeansFactory.getConfigBeanByXPath(ctx, xPath);
}