private void loadExternalXmlPlugin(File f) throws Exception { FileInputStream is = null; try { is = new FileInputStream(f); XMLNode xml = XMLNode.parse(is); if (xml != null) { addPlugin(new ExtXMLPlugin(xml)); } } finally { if (is != null) { is.close(); } } }