try {
// Obtain the Browser field config
BrowserFieldConfig bfConfig = getBrowserFieldConfig();
// Create doc builder
DocumentBuilder docBuilder = DocumentBuilderFactory.newInstance().newDocumentBuilder();
// Parse
Object o = bfConfig.getProperty( BrowserFieldConfig.CONTROLLER );
if( o instanceof BrowserFieldController ) {
BrowserFieldController bfController = (BrowserFieldController) o;
// Create request for config.xml file
BrowserFieldRequest request = new BrowserFieldRequest( WidgetUtil.getLocalPath( _configXML ) );
InputConnection inputConn = bfController.handleResourceRequest( request );
// Create a Document object out of the config.xml
_configXMLDoc = docBuilder.parse( inputConn.openDataInputStream() );
}
} catch( Exception e ) {
}
}