[main] Reuse a ConfigManager instance to reduce the method call.