initConfiguration(const SmartPtr<AbstractLogger>& logger, const char* confPath)
initConfiguration(SmartPtr<AbstractLogger>& logger, const char* confPath)
initConfiguration(const SmartPtr<AbstractLogger>& logger, const char* confPath){  SmartPtr<Configuration> configuration = Configuration::create();  bool res = false;  if (confPath != NULL) res = MathView::loadConfiguration(logger, configuration, confPath);  if (!res) res = MathView::loadConfiguration(logger, configuration, MathView::getDefaultConfigurationPath());  if (!res) res = MathView::loadConfiguration(logger, configuration, "config/gtkmathview.conf.xml");  if (!res)    {      logger->out(LOG_ERROR, "could not load configuration file");      exit(-1);    }  return configuration;}