anchor.diff:  				<cfreturn getBeanFromSingletonCache(dependentBeanDefs[1].getBeanID())>
   			<cfelse>
   				<cfreturn localBeanCache[dependentBeanDefs[1].getBeanID()]>
  -			</cfif>	
  -		</cfif>	
  -		
  -	</cffunction>
  -	
  +			</cfif>
  +		</cfif>
  +
  +	</cffunction>
  +
   	<cffunction name="constructComplexProperty" access="private" output="false" returntype="any"
   				hint="recurses through properties/constructor-args that are complex, resolving dependencies along the way">
   		<cfargument name="ComplexProperty" type="any" required="true"/>
   		<cfargument name="type" type="string" required="true"/>
   		<cfargument name="localBeanCache" type="struct" required="true"/>
  -		<cfset var rtn = 0 />	
  -		
  +		<cfset var rtn = 0 />
  +
   		<cfif arguments.type eq 'map'>
   			<!--- just return the struct because it's passed by ref --->
  -			<cfset findComplexPropertyRefs(arguments.ComplexProperty,arguments.type, arguments.localBeanCache)/> 
  -			<cfreturn arguments.ComplexProperty/>		
  +			<cfset findComplexPropertyRefs(arguments.ComplexProperty,arguments.type, arguments.localBeanCache)/>
  +			<cfreturn arguments.ComplexProperty/>
   		<cfelseif arguments.type eq 'list'>
  -			<!--- tail recursion for the array (and return the result) --->			
  -			<cfreturn findComplexPropertyRefs(arguments.ComplexProperty,arguments.type, arguments.localBeanCache)/> 			
  -		</cfif>
  -		
  -		
  -	</cffunction>
  -	
  +			<!--- tail recursion for the array (and return the result) --->
  +			<cfreturn findComplexPropertyRefs(arguments.ComplexProperty,arguments.type, arguments.localBeanCache)/>
  +		</cfif>
  +
  +
  +	</cffunction>
  +
   	<cffunction name="findComplexPropertyRefs" access="private" output="false" returntype="any">
  -		<cfargument name="ComplexProperty" type="any" required="true"/>	
  +		<cfargument name="ComplexProperty" type="any" required="true"/>
   		<cfargument name="type" type="string" required="true"/>
   		<cfargument name="localBeanCache" type="struct" required="true"/>
   		<cfset var entry=0/>
   		<cfset var tmp_ref=0/>
  -		
  +
   		<!--- based on the the type of property/con-arg --->
   		<cfswitch expression="#arguments.type#">
   			<cfcase value="map">
   				<cfloop collection="#arguments.ComplexProperty#" item="entry">
  -					<!--- loop thru the map (struct) --->			
  +					<!--- loop thru the map (struct) --->
   					<cfif isObject(arguments.ComplexProperty[entry]) and getMetaData(arguments.ComplexProperty[entry]).name eq "coldspring.beans.BeanReference">
   						<!--- this key's value is a beanReference, basically a placeholder that we replace
   							  with the actual bean, right now --->
  
positive.code: 				<cfset bean.postProcessBeanFactory(this) />
  			</cfif>
  		</cfloop>
  		
  	</cffunction>	
  	
  	
  	<cffunction name="initNonLazyBeans" access="private" output="false" returntype="void"
  				hint="constructs all non-lazy beans">
  				
  		<cfset var beanName = "" />
  		<cfset var bean = 0 />
  		<!--- <cfset var sys = CreateObject('java','java.lang.System') /> --->
  					
  		<cfloop collection="#variables.beanDefs#" item="beanName">
  			<cfif variables.beanDefs[beanName].isSingleton() 
  				  and not variables.beanDefs[beanName].isLazyInit() 
  				  and not variables.beanDefs[beanName].isConstructed() 
  				  and not variables.beanDefs[beanName].isInnerBean() 
  				  and not variables.beanDefs[beanName].isFactory()>
  				<cfset bean = getBean(beanName) />
  				<!--- <cfset sys.out.println("NON_LAZY LOADING BEAN: " & beanName & " ON FACTORY LOAD!!") /> --->
  			</cfif>
  		</cfloop>
  		
  	</cffunction>	
  	
  	<cffunction name="constructBean" access="private" returntype="any">
  		<cfargument name="beanName" type="string" required="true"/>
  		<cfargument name="returnInstance" type="boolean" required="false" default="false" 
  					hint="true when constructing a non-singleton bean (aka a prototype)"/>
  					
  		<cfset var localBeanCache = StructNew() />
  		<cfset var dependentBeanDefs = ArrayNew(1) />
  		<!--- first get list of beans including this bean and it's dependencies
  
negative.code: 						<cfset md.name = ""/>
  					</cfif>
  				</cfif>
  
  				<cfif structKeyExists(md, "functions")>
  					<!--- we need to call init method if it exists --->
  					<cfloop from="1" to="#arraylen(md.functions)#" index="functionIndex">
  						<cfif md.functions[functionIndex].name eq "init"
  								and beanDef.getFactoryBean() eq "">
  
  							<cftry>
  							<cfinvoke component="#beanInstance#" method="init">
  								<!--- loop over any bean constructor-args and pass them into the init() --->
  