try { URL url = getClass().getProtectionDomain().getCodeSource().getLocation();  return new File(url.getPath()); } catch (Throwable e) {  }
	private File getOsgiBase() {		String frameworkLocation = System.getProperty(OSGI_FRAMEWORK);		if (frameworkLocation != null)			// TODO assumes the location is a file URL			return new File(frameworkLocation.substring(5));		frameworkLocation = System.getProperty("user.dir"); //$NON-NLS-1$		if (frameworkLocation != null)			return new File(frameworkLocation);		return null;	}