if (fragments == null)
return null; // no fragments
// search the fragments for patch fragments
ArrayList patchList = new ArrayList(fragments.length);
for (int i = 0; i < fragments.length; i++) {
AbstractBundle fragment = (AbstractBundle) fragments[i];
BaseData fragmentData = (BaseData) fragment.getBundleData();
// The PFStorageHook knows if this is a patch fragment
PFStorageHook storageHook = (PFStorageHook) fragmentData.getStorageHook(PFStorageHook.KEY);
if (storageHook.isPatchFragment()) {
if (PFConfigurator.DEBUG)
System.out.println("Found patch fragment: " + fragmentData.toString()); //$NON-NLS-1$