if (server == null) {
Repository repository = getRepository();
String cl = getInitParameter(INIT_PARAM_CONCURRENCY_LEVEL);
if (cl != null) {
try {
server = new JCRWebdavServer(repository, getSessionProvider(), Integer.parseInt(cl));
} catch (NumberFormatException e) {
log.debug("Invalid value '" + cl+ "' for init-param 'concurrency-level'. Using default instead.");
server = new JCRWebdavServer(repository, getSessionProvider());
}
} else {
server = new JCRWebdavServer(repository, getSessionProvider());
}
}
return server;
}