else if ("NAME_RULE_LEFTY".equalsIgnoreCase(optStr))
return new NameRuleOptimizer(map);
else if ("NAME_COST_LEFTY".equalsIgnoreCase(optStr))
return new NameCostOptimizer(map);
else if ("NAME_MANUAL_BATCHING".equalsIgnoreCase(optStr))
return new ManualBatchingOptimizer(map);
throw new RuntimeException("Unknown " + optStr + " optimizer!");
}