package com.woopra;

import java.util.Properties;
/**
 * @author Woopra on 1/26/2013
 * 
 */
public class WoopraEvent {
	private String eventName = null;
	private Properties properties = null;

	public WoopraEvent(String eventName) {
		this.eventName = eventName;
		properties = new Properties();
	}

	public WoopraEvent(String eventName, Properties properties) {
		this.eventName = eventName;
		if (properties != null) {
			this.properties = properties;
		} else {
			properties = new Properties();
		}
	}

	public String getEventName() {
		return eventName;
	}

	public void setEventName(String eventName) {
		this.eventName = eventName;
	}

	public Properties getProperties() {
		return properties;
	}

	public void setProperties(Properties properties) {
		this.properties = properties;
	}

	public void addEventProperties(Properties newProperties) {
		properties.putAll(newProperties);
	}

	public void addEventProperty(String key, String value) {
		properties.setProperty(key, value);
	}
}

@@ -233,50 +233,24 @@
 %7B%0A%09%09
-this.eventName = eventName;%0A%09%09properties =
+super(eventName,
  new
@@ -342,275 +342,81 @@
 his.
-eventName = eventName;%0A%09%09if (properties != null) %7B%0A%09%09%09this.properties = properties;%0A%09%09%7D else %7B%0A%09%09%09properties = new Properties();%0A%09%09%7D%0A%09%7D%0A%0A%09public String getEventName() %7B%0A%09%09return eventName;%0A%09%7D%0A%0A%09public void setEventName(String eventName) %7B%0A%09%09this.eventName = eventName
+properties = properties;%0A%09%09this.properties.setProperty('name', eventName)
 ;%0A%09%7D

Fix event name not being added in constructor.