--- C:/Documents and Settings/Chris/Desktop/ModelGlue/gesture/loading/ColdSpringBootstrapper.cfc	Mon Aug 03 10:38:12 2009
+++ C:/Coldfusion/CF8/wwwroot/ModelGlue/gesture/loading/ColdSpringBootstrapper.cfc	Fri Sep 18 11:29:56 2009
@@ -36,10 +36,19 @@
 	
 	<!--- For now, we still have to load the core. --->
 	<cfset csPath = this.coreColdSpringPath />
-	<cfif not fileExists(csPath)>
-		<!--- Let's try to expand the path and see if that helps. --->
-		<cfset csPath = expandPath(this.coreColdSpringPath) />
-	</cfif>
+
+	
+	<!--- try/catch required to work in sandboxed environment --->
+	<cftry>
+		<cfif not fileExists(csPath)>
+			<!--- Let's try to expand the path and see if that helps. --->
+			<cfset csPath = expandPath(this.coreColdSpringPath) />
+		</cfif>
+		<cfcatch>
+			<cfset csPath = expandPath(this.coreColdSpringPath) />
+		</cfcatch>
+	</cftry>
+	
 	<cfif not fileExists(csPath)>
 		<!--- OK, screw it. We can't help you, please hang up and try your path again --->
 		<cfthrow message="Can't create beanfactory:  The ColdSpring path indicated (#csPath#) doesn't exist!" />
@@ -53,9 +62,17 @@
 				TODO:  Make this not happen in Gesture after <import> is released.
 	--->
 	<cfif this.modelglueVersionIndicator eq this.versionIndicators.gesture or this.modelglueVersionIndicator eq this.versionIndicators.unity>
-		<cfif not fileExists(originalCsPath)>
-			<cfset originalCsPath = expandPath(originalCsPath) />
-		</cfif>
+	
+		<!--- try/catch required to work in sandboxed environment --->
+		<cftry>
+			<cfif not fileExists(originalCsPath)>
+				<cfset originalCsPath = expandPath(originalCsPath) />
+			</cfif>
+		
+			<cfcatch>
+				<cfset originalCsPath = expandPath(originalCsPath) />
+			</cfcatch>
+		</cftry>
 	
 		<cfif not fileExists(originalCsPath)>
 			<cfthrow message="Can't create beanfactory:  The ColdSpring path indicated (#originalCsPath#) doesn't exist!" />
