// Iterate through that collection, looking for the one that contains an
// mbean whose name matches the name (or pattern) provided:
ObjectName pattern = new ObjectName(name);
outer: for (Iterator iter = deploymentColl.iterator(); iter.hasNext();)
{
DeploymentInfo deploymentInfo = (DeploymentInfo) iter.next();
List associatedMBeanObjectNames = deploymentInfo.mbeans;
for (Iterator iterator = associatedMBeanObjectNames.iterator(); iterator.hasNext();)
{
ObjectName beanName = (ObjectName) iterator.next();
if (log.isDebugEnabled()) log.debug("beanName=" + beanName);