values.put(NAME, packageInfo.name);
values.put(VERSION, packageInfo.version.toString());
values.put(REMOVAL_PENDING, packageInfo.isRemovalPending);
values.put(EXPORTING_BUNDLES, Utils.toLongArray(Utils.getIds(packageInfo.exportingBundles.toArray(new Bundle[packageInfo.exportingBundles.size()]))));
values.put(IMPORTING_BUNDLES, Utils.toLongArray(Utils.getIds(packageInfo.importingBundles.toArray(new Bundle[packageInfo.importingBundles.size()]))));
dataSupport.put(new CompositeDataSupport(PACKAGE_TYPE, values));
}
return dataSupport;
} catch (IOException e) {
logVisitor.warning("listPackages error", e);
throw e;