public URL getResourceURL(String path, long hostBundleID, int index) { BundleEntry bundleEntry = getEntry(path); if (bundleEntry == null) return null;  try {  return new URL(Constants.OSGI_RESOURCE_URL_PROTOCOL, Long.toString(hostBundleID), index, path, new Handler(bundleEntry)); } catch (MalformedURLException e) { return null; }
public URL getResourceURL(String path, long hostBundleID) { return getResourceURL(path, hostBundleID, 0);
	public URL getResourceURL(String path, long hostBundleID, int index) {		BundleEntry bundleEntry = getEntry(path);		if (bundleEntry == null)			return null;		try {			//use the constant string for the protocol to prevent duplication			return new URL(Constants.OSGI_RESOURCE_URL_PROTOCOL, Long.toString(hostBundleID), index, path, new Handler(bundleEntry));		} catch (MalformedURLException e) {			return null;		}	}