public List<ServiceUnit> getServiceUnits() {
List<ServiceUnit> serviceUnits = new ArrayList<ServiceUnit>();
ObjectName[] names = mbean.getServiceUnitNames();
for (int i = 0; i < names.length; i++) {
ServiceUnitMBean mbean = proxyManager.getProxy(names[i], ServiceUnitMBean.class);
serviceUnits.add(new ServiceUnit(this, mbean, names[i]));
}
return serviceUnits;
}