for (int i = 0; i < bundles.length; i++) {
try {
Bundle bundle = bundles[i];
BundleInfo info = bundleService.getInfo(bundle);
String bundleStateString = info.getState().toString();
CompositeData data = new CompositeDataSupport(bundleType,
new String[]{"ID", "Name", "Version", "Start Level", "State"},
new Object[]{info.getBundleId(), info.getSymbolicName(), info.getVersion(), info.getStartLevel(), bundleStateString});
table.put(data);
} catch (Exception e) {
LOG.error(e.getMessage(), e);