try {
maxSize = Integer.parseInt(properties.getProperty("maxSize", "1"), 10);
} catch (NumberFormatException e) {
}
int logSeverity = parseLogSeverity(properties.getProperty("logSeverity", "DEFAULT"));
CacheLogger logger = new DefaultCacheLogger();
try {
logger = parseLogger(properties.getProperty("logger", "org.fjank.jcache.DefaultCacheLogger"));
logger.setSeverity(logSeverity);
} catch (CacheException e) {
//ugh.
e.printStackTrace();
}
List addresses = parseAddresses(properties.getProperty("discoveryAddress", "localhost:12345"));