<cfsilent>
	<cfset out=""/>
	<cfif thisTag.executionMode IS "end" OR !thisTag.hasEndTag>
		<cfassociate basetag="cf_dependency" datacollection="fieldsArray" />

		<cfparam name="ATTRIBUTES.expression" default=""/>
		<cfparam name="ATTRIBUTES.title" default=""/>
		<cfparam name="ATTRIBUTES.name" default=""/>

		<cfif ATTRIBUTES.expression IS "">
			<cfset ATTRIBUTES.expression=thisTag.generatedContent/>
		</cfif>

		<cfif ATTRIBUTES.name IS "">
			<cfset regex="([[:word:]]+)[[:space:]]*$"/>
			<cfset matches=REFindNoCase(regex, ATTRIBUTES.expression, 1, true)/>
			<cfif arrayLen(matches.pos) GT 1>
				<cfset ATTRIBUTES.name=mid(ATTRIBUTES.expression, matches.pos[2], matches.len[2])/>
			</cfif>
		</cfif>
		<cfif arrayLen(getBaseTagData("cf_dependency",1).thisTag.fieldsArray) GT 0>
			<cfset thisTag.generatedContent=", #thisTag.generatedContent#"/>
		</cfif>
		
	</cfif>
</cfsilent>