Debug.printStackTrace(t);
}
String message = NLS.bind(Msg.SERVICE_FACTORY_EXCEPTION, hook.getClass().getName(), method);
if (causeFailure) {
releaseHooks(hookRefs);
throw new ResolverHookException(message, t);
}
BundleException be = new BundleException(message, BundleException.REJECTED_BY_HOOK, t);
context.framework.publishFrameworkEvent(FrameworkEvent.ERROR, hookBundle, be);
}