Location service = CommonOSGiUtils.getDefault().getInstanceLocation();
Activator activator = Activator.getDefault(); if (activator == null) throw new IllegalStateException(CommonMessages.activator_not_available); Location service = activator.getInstanceLocation();
	protected void assertLocationInitialized() throws IllegalStateException {		if (location != null && initialized)			return;		Location service = CommonOSGiUtils.getDefault().getInstanceLocation();		if (service == null)			throw new IllegalStateException(CommonMessages.meta_noDataModeSpecified);		try {			URL url = service.getURL();			if (url == null)				throw new IllegalStateException(CommonMessages.meta_instanceDataUnspecified);			// TODO assume the URL is a file: 			// Use the new File technique to ensure that the resultant string is 			// in the right format (e.g., leading / removed from /c:/foo etc)			location = new Path(new File(url.getFile()).toString());			initializeLocation();		} catch (CoreException e) {			throw new IllegalStateException(e.getMessage());		}	}