@@ -0,0 +1,1003 @@
+/**%0A * This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.%0A * If a copy of the MPL was not distributed with this file, You can obtain one at%0A * http://mozilla.org/MPL/2.0/.%0A * %0A * This Source Code Form is also subject to the terms of the Health-Related Additional%0A * Disclaimer of Warranty and Limitation of Liability available at%0A * http://www.carewebframework.org/licensing/disclaimer.%0A */%0Apackage org.carewebframework.api.spring;%0A%0Aimport org.springframework.beans.factory.FactoryBean;%0A%0A/**%0A * Allows the instantiation of a bean reference with a value of null. This is useful where the%0A * implementation of a bean may be optional.%0A */%0Apublic class NullFactoryBean implements FactoryBean%3CVoid%3E %7B%0A    %0A    @Override%0A    public Void getObject() throws Exception %7B%0A        return null;%0A    %7D%0A    %0A    @Override%0A    public Class%3C? extends Void%3E getObjectType() %7B%0A        return null;%0A    %7D%0A    %0A    @Override%0A    public boolean isSingleton() %7B%0A        return true;%0A    %7D%0A%7D%0A

Add NullFactoryBean to allow creating null bean references.