if(bs.bDelayedStart ||  (bs.getState() == Bundle.RESOLVED)) {
if(bs.archive.isPersistent() ||  (bs.getState() == Bundle.RESOLVED)) {
  void syncStartLevel(BundleImpl bs) {    synchronized(lock) {      if(bs.getStartLevel() <= currentLevel) {	if(canStart(bs)) {	  if(bs.bDelayedStart ||  (bs.getState() == Bundle.RESOLVED)) {	    try {	      bs.start();	    } catch (Exception e) {	      framework.listeners.frameworkEvent(new FrameworkEvent(FrameworkEvent.ERROR, bs, e));	    }	  } else {	    bs.bDelayedStart = true;	  }	}      } else if(bs.getStartLevel() > currentLevel) {	if(bs.getState() == Bundle.ACTIVE) {	  try {	    bs.stop();	    bs.bDelayedStart = true; // Reset this since stop sets to false	  } catch (Exception e) {	    framework.listeners.frameworkEvent(new FrameworkEvent(FrameworkEvent.ERROR, bs, e));	  }	}      }    }  }