{
int size = Platform.getPlatformAdmin().getState().getBundles().length;
Bundle[] bundles = new Bundle[size];
for( int i=0; i<size; i++)
{
BundleDescription bd = Platform.getPlatformAdmin().getState().getBundles()[i];
bundles[i] = new Bundle(bd.getSymbolicName(),bd.getSymbolicName(), bd.getSupplier().getName(), bd.getVersion().toString(), null);
BundleSpecification[] bs = bd.getRequiredBundles();
List requiredBundles = new ArrayList();
for( int j=0; j<bs.length; j++)
{
requiredBundles.add(getBundleDescription(bs[j]));
}