if (bundle.isFragment()) {
if (bundle.isFragment() && bundle.getHosts() != null) {
	private URL findResource(String resource) {		AbstractBundle searchBundle = bundle;		if (bundle.isResolved()) {			if (bundle.isFragment()) {				//if the bundle is a fragment, look in the host first				searchBundle = bundle.getHosts()[0].getBundleHost();				if (searchBundle.getState() == Bundle.UNINSTALLED)					searchBundle = bundle;			}			return findInResolved(resource, searchBundle);		}		return findInBundle(resource, searchBundle);	}