if (passivationDir != null)
{
CacheLoaderConfig clc = new CacheLoaderConfig();
clc.setPassivation(true);
clc.setShared(false);
FileCacheLoaderConfig fclc = new FileCacheLoaderConfig();
fclc.setLocation(passivationDir);
fclc.setFetchPersistentState(true);
fclc.setPurgeOnStartup(purgeCacheLoader);
fclc.setAsync(false);
fclc.setIgnoreModifications(false);
ArrayList<IndividualCacheLoaderConfig> iclcs = new ArrayList<IndividualCacheLoaderConfig>();
iclcs.add(fclc);
clc.setIndividualCacheLoaderConfigs(iclcs);
config.setCacheLoaderConfig(clc);