throw new BundleException(Msg.formatter.getString("FRAGMENT_ATTACHMENT ERROR"));
throw new BundleException(Msg.formatter.getString("BUNDLE_LOADER_ATTACHMENT_ERROR", fragments[i].getSymbolicName(),getSymbolicName()));
	protected void attachFragment(BundleFragment fragment) throws BundleException {		if (fragments == null) {			fragments = new BundleFragment[] {fragment};		} else {			boolean inserted = false;			// We must keep our fragments ordered by bundle ID; or 			// install order.			BundleFragment[] newFragments = new BundleFragment[fragments.length+1];			for (int i = 0; i < fragments.length; i++) {				if (!inserted && fragment.getBundleId() < fragments[i].getBundleId()) {					// if the loader has already been created					// then we cannot attach a fragment into the middle					// of the fragment chain.					if (loader != null) {						throw new BundleException(Msg.formatter.getString("FRAGMENT_ATTACHMENT ERROR"));					}					newFragments[i] = fragment;					inserted = true;				}				newFragments[inserted ? i+1 : i] = fragments[i]; 			}		}		// If the Host ClassLoader has exists then we must attach		// the fragment to the ClassLoader.		if (loader != null) {			loader.attachFragment(fragment, SecureAction.getProperties());		}	}