Use getDeclaredMethod when looking for the framework method that gives us the urlhandlers and fix a bug when running in different classloaders (FELIX-3840).