private static synchronized LambdaSingleton createAndCacheSingleton()
    {
        System.out.println("In Synchronized Supplier");

        // Non-synchronized(dummy) supplier
        class DummySupplier implements Supplier<LambdaSingleton>
        {
            private LambdaSingleton instance;

            DummySupplier(LambdaSingleton instance)
            {
                this.instance = instance;
            }

            public LambdaSingleton get()
            {
                System.out.println("In non-synchronized Supplier");
                return instance;
            }
        }

        if(accessor instanceof DummySupplier)
        {
            return accessor.get();
        }

        LambdaSingleton instance = new LambdaSingleton();
        accessor = new DummySupplier(instance);
        return instance;
    }