Bundle bundle = Platform.getBundle("org.eclipse.birt.report.engine.fonts"); Path path = new Path(CONFIG_FILE_PATH); URL fileURL = FileLocator.find(bundle, path, null); if (null == fileURL)
Bundle bundle = Platform .getBundle( "org.eclipse.birt.report.engine.fonts" ); if ( bundle == null )
	public boolean parseConfigFile()	{		try		{			Bundle bundle = Platform.getBundle("org.eclipse.birt.report.engine.fonts"); //$NON-NLS-1$			Path path = new Path(CONFIG_FILE_PATH);			URL fileURL = FileLocator.find(bundle, path, null);			if (null == fileURL)				return false;			InputStream cfgFile = fileURL.openStream();							InputStreamReader r = new InputStreamReader(					new BufferedInputStream(cfgFile), Charset.forName("UTF-8")); //$NON-NLS-1$			DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();			DocumentBuilder db = dbf.newDocumentBuilder();			Document doc = db.parse(new InputSource(r));						handleFontMappings(doc);			handleFontPaths(doc);			handleFontEncodings(doc);			return true;		} catch (SAXException se)		{			logger.log(Level.WARNING, se.getMessage(), se);			return false;		} catch (IOException ioe)		{			logger.log(Level.WARNING, ioe.getMessage(), ioe);			return false;		} catch (ParserConfigurationException pce)		{			logger.log(Level.WARNING, pce.getMessage(), pce);			return false;		}	}