@Override
    public boolean contains(ConfigType configType, ConfigItem configItem) {
        validate(configType, configItem);
        return null != userConfigs.get(configType)
               && userConfigs.get(configType).containsKey(configItem);
    }
use a hash map to store the user configs with different config types and config items.
src/main/java/com/alipay/remoting/config/configs/DefaultConfigContainer.java