File xmlConfigFile = new File(xmlConfigPath);
XMLConfig xmlConfig = null;
if (xmlConfigFile!=null && xmlConfigFile.exists()) {
xmlConfig = new XMLConfig();
try {
xmlConfig.loadFile(xmlConfigPath);
} catch (IOException e) {
e.printStackTrace();
return null;
}
return xmlConfig;