 			}
 			
 			var paramDebugStr:String = '';
-			
+			
 			if (methodParams is Array && methodParams.length > 0)
 				paramDebugStr = methodParams.map(function(p:Object, i:int, a:Array):String { return Compiler.stringify(p); }).join(', ');
 			else
-				paramDebugStr += Compiler.stringify(methodParams);
-			
-			trace(StandardLib.substitute(
-					"Received error on {0}({1}):\n\t{2}",
-					methodName,
-					paramDebugStr,
-					event.fault.faultString
-				));
+				paramDebugStr += Compiler.stringify(methodParams);
+			
+			trace(StandardLib.substitute(
+					"Received error on {0}({1}):\n\t{2}",
+					methodName,
+					paramDebugStr,
+					event.fault.faultString
+				));
 			
 			//Alert.show(event.fault.faultString, event.fault.name);
 			var msg:String = event.fault.faultString;

				msg = "Received no response from the servlet.\n"
					+ "Has the WAR file been deployed correctly?\n"
					+ "Expected servlet URL: "+ adminService.servletURL;
			messageDisplay(event.fault.name, msg, true);
		}
		
		public function getVersion():AsyncToken
		{
			return invokeAdmin(getVersion, arguments);
		}

		public function checkDatabaseConfigExists():AsyncToken
		{
			return invokeAdmin(checkDatabaseConfigExists, arguments);
		}
		
		public function authenticate(user:String, pass:String):AsyncToken
		{
			return invokeAdmin(authenticate, arguments);
		}
		
		public function keepAlive():AsyncToken

				addAsyncResponder(query, WeaveDataServlet.castResult, null, returnType);

			// automatically display FaultEvent error messages as alert boxes
			addAsyncResponder(query, hookHandler, alertFault, query);
			
			if (!queued)
				query.invoke();
			
			return query;
		}
		
		// this function displays a String response from a server in an Alert box.
		private function alertResult(event:ResultEvent, token:Object = null):void
		{
			messageDisplay(null,String(event.result),false);
		}
		
		private static const PREVENT_FAULT_ALERT:Dictionary = new Dictionary(true);
