break;
case 2:
if (settings.get("/user/statistics/remote/host") == null || settings.get("/user/statistics/remote/port") == null || settings.get("/user/statistics/remote/retry_interval") == null) {
throw new ConfigurationException("must specify {host, port, retry_interval} when using remote statistics");
}
userStatistics = new RmiUserStatisticsClient(settings.get("/user/statistics/remote/host"), settings.getInt("/user/statistics/remote/port"), settings.getInt("/user/statistics/remote/retry_interval"));
break;
case 1:
default:
userStatistics = new LocalUserStatistics(new File(settings.getDataDirectory(), "/logs/userstatistics"));
break;