protected void onTakingEvent(DataEvent event)
	{
		System.out.println("<fileBuilder-service>: starting event processing");
		BufferedReader br = null;
		PrintStream ps = null;
		// TODO throwing an exception
		try
		{
			br = new BufferedReader(new InputStreamReader(new FileInputStream(this.destFile + "." + this.extension), this.charset));
			ps = new PrintStream(new FileOutputStream(this.destFile + ".new"), true, this.charset);
			while (true)
			{
				String line = br.readLine();
				if (line == null)
					break;
				ps.println(line);
				String lineTrimed = line.trim();
				if (lineTrimed.startsWith(this.startOfToken) && lineTrimed.endsWith(this.endOfToken))
				{
					int sot = lineTrimed.indexOf(this.startOfToken);
					// System.out.println(sot);
					// System.out.println(sot + this.startOfToken.length());
					int eot = lineTrimed.indexOf(this.endOfToken);
					// System.out.println(eot);
					String token = lineTrimed.substring(sot + this.startOfToken.length(), eot).trim();
					String textToInsert = insertDataEventText(event, token, this.firstTime);

					if (textToInsert != null)
					{
						if (this.firstTime && (textToInsert.length() > 0))
							this.firstTime = false;
						ps.println(textToInsert);
					}
				}
			}
			new File(this.destFile + "." + this.extension).renameTo(new File(this.destFile + ".old"));
			new File(this.destFile + ".new").renameTo(new File(this.destFile + "." + this.extension));
		}
		catch (Exception e)
		{
			e.printStackTrace();
		}
		try
		{
			br.close();
			ps.close();
		}
		catch (IOException e)
		{
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		System.out.println("<fileBuilder-service>: ending event processing");
	}