return new ZipDumpDestination(file);
}
public static void dump(BundleContext bundleContext, DumpDestination destination) {
List<DumpProvider> providers = new ArrayList<DumpProvider>();
providers.add(new EnvironmentDumpProvider(bundleContext));
providers.add(new MemoryDumpProvider());
providers.add(new ThreadDumpProvider());
providers.add(new HeapDumpProvider());
providers.add(new BundleDumpProvider(bundleContext));
for (DumpProvider provider : providers) {