if (singleton) { this.singleton = true; AbstractBundle[] sameNames = framework.bundles.getBundles(getSymbolicName()); if (sameNames != null && sameNames.length > 1) { for (int i = 0; i < sameNames.length; i++) if (sameNames[i] != this) { if (sameNames[i].isResolved() && sameNames[i].singleton) { runtimeResolveError = Msg.formatter.getString("BUNDLE_SINGLETON_RESOLVE_ERROR", this.getLocation(), sameNames[i].getLocation()); return; } } } }
	protected void resolve() {		if (domain != null && !checkPermissions()) {			state = INSTALLED;			return;		}		if (Debug.DEBUG && Debug.DEBUG_GENERAL) {			if ((state & (INSTALLED)) == 0) {				Debug.println("Bundle.resolve called when state != INSTALLED: " + this);				Debug.printStackTrace(new Exception("Stack trace"));			}		}		if (state == INSTALLED) {			state = RESOLVED;			// Do not publish RESOLVED event here.  This is done by caller 			// to resolve if appropriate.		}	}