package beaform.events;

import java.text.SimpleDateFormat;
import java.util.Date;

import beaform.utilities.SystemTime;

public class FormulaCreatedEvent implements Event {
	private static final String EVENT_TYPE = "FormulaCreated";
	private static final SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SS");
	private final String name;
	private final long timestamp;

	public FormulaCreatedEvent(String name) {
		this.name = name;
		this.timestamp = SystemTime.getAsLong();
	}

	@Override
	public String toEventString() {
		final String formattedTimeStamp = dateFormat.format(new Date(this.timestamp));
		return "[" + formattedTimeStamp + "] " + EVENT_TYPE + " " + this.name;
	}

}

@@ -254,58 +254,33 @@
 al S
-impleDateFormat dateFormat = new SimpleDateFormat(
+tring TIMESTAMP_FORMAT = 
 %22yyy
@@ -299,17 +299,16 @@
 m:ss.SS%22
-)
 ;%0A%09priva
@@ -515,16 +515,94 @@
 ing() %7B%0A
+%09%09final SimpleDateFormat dateFormat = new SimpleDateFormat(TIMESTAMP_FORMAT);%0A
 %09%09final 

Improve thread safety by not using a static instance of SimpleDateFormat