String customImplementation = optimizerCfg.getProperty( "implementation" );
if ( customImplementation != null && (! "default".equalsIgnoreCase( customImplementation ) ) ) {
return ClassLoaderHelper.instanceFromName( OptimizerStrategy.class, customImplementation, callback.getClass(), "Optimizer Strategy" );
}
else {
boolean incremental = optimizerCfg.containsKey( "operation_limit.max" )
|| optimizerCfg.containsKey( "transaction_limit.max" );
OptimizerStrategy optimizerStrategy;
if ( incremental ) {
optimizerStrategy = new IncrementalOptimizerStrategy();
optimizerStrategy.initialize( callback, optimizerCfg );