protected void ensureNotFrozen() {
        if (frozen)
            throw new IllegalStateException(this + " is frozen and cannot be modified");
    }
Throws an IllegalStateException if this is frozen
component/src/main/java/com/yahoo/component/provider/FreezableSimpleComponent.java