if (newDelegate instanceof CycleCheck) { ((CycleCheck)newDelegate).checkForCycle(); }
    public Object hotswap(Object newDelegate) {        Object result = delegateReference.get();        delegateReference.set(newDelegate);        return result;    }