1) I'm still at evaluating
WICKET-4439.patch checking if it works correctly to add the osgi manifest.
2) I've copied and attached the src from OsgiPackageAnalyserScript here granting the "Licsensed for inclusion in ASF works" just to make sure that there are no license conflicts
WICKET-4439-test.patch: I really like the approach; pretty cool work! Though one comment about line 207...
...is not completely correct. The osgi import/export statements only describe which packages are available for resource loading. Therefore, if we need to load any packages with other resources than java code we need to check for a file (vs directory) in general rather than for a .class file.