private void doAddAppender(LoggerAppender appender) throws Exception {
    if ((appender.getAppenderName() == null) || (appender.getAppenderName().isEmpty())) throw new IllegalArgumentException("Appender is null");
    if (appender.getAppenderName().equalsIgnoreCase("STDOUT")) {
      addConsoleAppender(appender.getAppenderName(), appender.getLevel());
    }
    else if (appender.getAppenderName().equalsIgnoreCase("FILEOUT")) {
      addFileAppender(appender.getAppenderName(), appender.getLevel());
    }
    else throw new IllegalArgumentException("Appender " + appender.getAppenderName() + " not yet implemented.");
  }