// Check for null, use external or inbuilt config.
if(userConfig != null) {
try {
userConfigFile = new java.io.File(userConfig);
options = new Options(userConfigFile);
getLogger().debug("Using config file " + userConfig);
} catch (Exception ex) {
getLogger().error("Cannot load config " + userConfig, ex);
throw new ConfigurationException("Cannot load config " + userConfig, ex);
}
} else {
try {
options = new Options();
getLogger().debug("Using default config file");
} catch (Exception e) {
getLogger().error("Cannot load default config ", e);
}
}