@Override
        @SuppressWarnings("unchecked")
        public T get() {
            if (!clazz.isInterface()) {
                throw new IllegalArgumentException("Cannot create bean supplier proxy for non-interface type " + clazz.getSimpleName());
            }
            return (T) PROXIES.computeIfAbsent(clazz.getName(),
                s -> Proxy.newProxyInstance(getClass().getClassLoader(),
                    new Class[]{clazz},
                    (proxy, method, args) -> {
                        if ("toString".equals(method.getName())) {
                            return PROXY_BEAN_TOSTRING_PREFIX + clazz.getName();
                        }
                        val returnType = method.getReturnType();
                        return TYPES_AND_VALUES.getOrDefault(returnType, null);
                    }));
        }
Create a null bean.

@return the bean supplier
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/spring/beans/BeanSupplier.java