anchor.diff:  	<cffunction name="getBeanFromSingletonCache" access="public" returntype="any" output="false">
   		<cfargument name="beanName" type="string" required="true" />
   		<cfset var objRef = 0 />
  -		<cfset var error = false />
  +		<cfset var objExists = true />
   		<cflock name="SingletonCache" type="readonly" timeout="5">
   			<cfif StructKeyExists(variables.singletonCache, beanName)>
   				<cfset objRef = variables.singletonCache[beanName] />
  -			<cfelseif isObject(parent)>
  +			<cfelse>
  +				<cfset objExists = true />
  +			</cfif>
  +		</cflock>
  +		
  +		<cfif not(objExists)>
  +			<cfif isObject(parent)>
   				<cfset objRef = variables.parent.getBeanFromSingletonCache(arguments.beanName)>
   			<cfelse>
  -				<cfset error = true />
  -			</cfif>
  -		</cflock>
  -		
  -		<cfif error>
  -			<cfthrow message="Cache error, #beanName# does not exists">
  -		<cfelse>
  -			<cfreturn objRef />
  -		</cfif>
  +				<cfthrow message="Cache error, #beanName# does not exists">
  +			</cfif>
  +		</cfif>
  +		
  +		<cfreturn objRef />
   	</cffunction>
   	
   	<cffunction name="addBeanToSingletonCache" access="public" returntype="any" output="false">
  
positive.code:   limitations under the License.
  		
  			
   $Id: DefaultXmlBeanFactory.cfc,v 1.20 2006/03/03 18:45:32 rossd Exp $
  
  ---> 
  
  
negative.code: 		<cflock name="SingletonCache" type="readonly" timeout="5">
  			<cfset objExists = StructKeyExists(variables.singletonCache, beanName) />
  		</cflock>
  		<cfif not(objExists) AND isObject(parent)>
  			<cfset objExists = parent.singletonCacheContainsBean(arguments.beanName)>
  		</cfif>
  		<cfreturn objExists />
  