anchor.diff:    limitations under the License.
   		
   			
  - $Id: DefaultXmlBeanFactory.cfc,v 1.20 2006/03/03 18:45:32 rossd Exp $
  + $Id: DefaultXmlBeanFactory.cfc,v 1.21 2006/03/08 02:31:29 scottc Exp $
   
   ---> 
   
  
positive.code: 	<cffunction name="getBeanFromSingletonCache" access="public" returntype="any" output="false">
  		<cfargument name="beanName" type="string" required="true" />
  		<cfset var objRef = 0 />
  		<cfset var error = false />
  		<cflock name="SingletonCache" type="readonly" timeout="5">
  			<cfif StructKeyExists(variables.singletonCache, beanName)>
  				<cfset objRef = variables.singletonCache[beanName] />
  			<cfelseif 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>
  	</cffunction>
  	
  	<cffunction name="addBeanToSingletonCache" access="public" returntype="any" output="false">
  
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 />
  