public WaitForBlueprintGBean(@ParamSpecial(type = SpecialAttributeType.bundleContext) BundleContext bundleContext,
@ParamAttribute(name = "packageName") String packageName,
@ParamAttribute(name = "symbolicName") String symbolicName) throws Exception {
final Bundle bundle = BundleUtils.unwrapBundle(getBundle(bundleContext, symbolicName, packageName));
BlueprintListener listener = new BlueprintListener() {
@Override
public void blueprintEvent(BlueprintEvent event) {
if (event.getBundle() == bundle) {
if (event.getType() == BlueprintEvent.CREATED || event.getType() == BlueprintEvent.FAILURE) {