Bundle bundle = FrameworkUtil.getBundle(CommandsCompleter.class);
BundleContext bc = bundle.getBundleContext();
ServiceReference<ProxyManager> ref = bc.getServiceReference(ProxyManager.class);
ProxyManager pm = ref != null ? bc.getService(ref) : null;
if (pm != null) {
Callable call = pm.unwrap(function);
if (call != null) {
return unProxy((Function) call.call());
}
bc.ungetService(ref);
}