try
{
System.err.println("MemcachedTestServer:SessionIdManager:" + _maxInactivePeriod + "/" + _scavengePeriod);
AbstractMemcachedClientFactory clientFactory = getMemcachedClientFactory();
if (clientFactory == null) {
_idManager = new MemcachedSessionIdManager(_server, config);
} else {
_idManager = new MemcachedSessionIdManager(_server, config, clientFactory);
}
_idManager.setScavengePeriod((int)TimeUnit.SECONDS.toMillis(_scavengePeriod));
_idManager.setKeyPrefix("MemcachedTestServer::");
_idManager.setKeySuffix("::MemcachedTestServer");
// to avoid stupid bugs of instance initialization...