OsgiHostFactory that creates proper OsgiHost implementation according to
context param from web.xml
Two implementations are supported right now:
- Apache Felix
- Glassfish (which contains Apache Felix already)
A bundle is a jar, and a bunble URL will be useless to clients, this method translates
a URL to a resource inside a bundle from "bundle:something/path" to "jar:file:bundlelocation!/path"