anchor.diff:  		<cfif StructKeyExists(variables.beanDefs, beanName)>
   			<cfreturn true />
   		<cfelse>
  -			<cfif isObject(parent)>
  -				<cfreturn parent.beanDefinitionExists(arguments.beanName)>
  +			<cfif isObject(variables.parent)>
  +				<cfreturn variables.parent.beanDefinitionExists(arguments.beanName)>
   			<cfelse>
   				<cfreturn false />
   			</cfif>
  
positive.code: 	</cffunction>
  	
  
  	<cffunction name="containsBean" access="public" output="false" returntype="boolean"
  				hint="returns true if the BeanFactory contains a bean definition or bean instance that matches the given name">
  		<cfargument name="beanName" required="true" type="string" hint="name of bean to look for"/>
  		<!--- <cfif NOT isObject(variables.parent)> --->
  			<cfreturn structKeyExists(variables.beanDefs, arguments.beanName)/>
  		<!--- <cfelse>
  			<cfif NOT structKeyExists(variables.beanDefs, arguments.beanName)>
  				<cfreturn variables.parent.containsBean(arguments.beanName) />
  			<cfelse>
  				<cfreturn true>
  			</cfif>
  		</cfif> --->
  	</cffunction>
  	
  	<!--- this exists for autowiring by type... could be cleaned up --->
  
negative.code: 		<cflock name="bf_#variables.beanFactoryId#.SingletonCache" type="readonly" timeout="5">
  			<cfset objExists = StructKeyExists(variables.singletonCache, beanName) />
  		</cflock>
  		<cfif not(objExists) AND isObject(variables.parent)>
  			<cfset objExists = variables.parent.singletonCacheContainsBean(arguments.beanName)>
  		</cfif>
  		<cfreturn objExists />
  	</cffunction>
  