ArrayList domains = new ArrayList ();
while( mbeans.hasNext() )
{
DomainData domainData = (DomainData) mbeans.next();
String domainName = domainData.getDomainName();
MBeanData[] data = domainData.getData();
TreeNode[] subResources = new TreeNode[data.length];
for(int d = 0; d < data.length; d ++)
{
subResources[d] = createJmxMBeanSubResources (data[d]);