readOnly = Boolean.TRUE;
}
if (serialize == null) {
serialize = Boolean.FALSE;
}
CacheModelConfig cacheConfig = state.getConfig().newCacheModelConfig(id,
(CacheController) Resources.instantiate(clazz), readOnly.booleanValue(),
serialize.booleanValue());
state.setCacheConfig(cacheConfig);
}
});