code: public void modifiedBundle(Bundle bundle, BundleEvent event, Bundle object) {
  		// If the bundle being stopped is the system bundle,
  		// do an orderly shutdown of all blueprint contexts now
  		// so that service usage can actually be useful
  		if (bundle.getBundleId() == 0 && bundle.getState() == Bundle.STOPPING) {
  			if (preemptiveShutdown) {
  				try {
  					stop(bundleContext);
  				} catch (Exception e) {
  					logger.error("Error while performing preemptive shutdown",
  							e);
  				}
  				return;
  			}
  		}
  		if (bundle.getState() != Bundle.ACTIVE
  				&& bundle.getState() != Bundle.STARTING) {
  			// The bundle is not in STARTING or ACTIVE state anymore
  			// so destroy the bundleContext. Ignore our own bundle since it
  			// needs to kick the orderly shutdown and not unregister the
  			// namespaces.
  			if (bundle != this.bundleContext.getBundle()) {
  				destroyExtension(bundle);
  			}
  			return;
  		}
  		// Do not track bundles given we are stopping
  		if (stopping) {
  			return;
  		}
  		// For starting bundles, ensure, it's a lazy activation,
  		// else we'll wait for the bundle to become ACTIVE
  		if (bundle.getState() == Bundle.STARTING) {
  			String activationPolicyHeader = (String) bundle.getHeaders().get(
  					Constants.BUNDLE_ACTIVATIONPOLICY);
  			if (activationPolicyHeader == null
  					|| !activationPolicyHeader
  					.startsWith(Constants.ACTIVATION_LAZY)) {
  				// Do not track this bundle yet
  				return;
  			}
  		}
  		createExtension(bundle);
  	}
docs: CHECKSTYLE:OFF