private boolean hasConfigChanged() {
        T myInstance = getNewInstance();
        ConfigState<T> configState = getConfigState();
        // User forced reload
        if (checkReloaded()) {
            setConfigIfChanged(myInstance);
            return true;
        }
        if (!myInstance.equals(configState.getConfig())) {
            setConfigIncGen(myInstance);
            return true;
        }
        return false;
    }
Subscription on a programmatically built set of configs

@author Vegard Havdal
config/src/main/java/com/yahoo/config/subscription/impl/ConfigSetSubscription.java