presto-main/src/main/java/io/prestosql/execution/resourcegroups/InternalResourceGroupManager.java/InternalResourceGroupManager/addConfigurationManagerFactory
class InternalResourceGroupManager:    @Override
    public void addConfigurationManagerFactory(ResourceGroupConfigurationManagerFactory factory)
    {
        if (configurationManagerFactories.putIfAbsent(factory.getName(), factory) != null) {
            throw new IllegalArgumentException(format("Resource group configuration manager '%s' is already registered", factory.getName()));
        }
    }