Configuration configuration = new Configuration();
configuration.setClassLoader(this.getClass().getClassLoader());
FluentConfiguration fluent = configuration.fluent();
Configuration.CacheMode mode = CacheMode.valueOf(cache.require(ModelKeys.MODE).asString());
requiresTransport |= mode.isClustered();
fluent.mode(mode);
if (cache.hasDefined(ModelKeys.BATCHING)) {
if (cache.get(ModelKeys.BATCHING).asBoolean()) {
fluent.invocationBatching();
}
}