package com.aikinparker.events;

public class DataEvent<T> extends Event {

	
	protected T data;
	
	public DataEvent(String type, T data) {
		super(type);
		this.data = data;
	}
	
	public T getData() {
		return data;
	}
	
	public DataEventListener<T> createListener(Class<? extends DataEventListener<T>> listenerClass) {
		try {
			return listenerClass.newInstance();
		} catch (InstantiationException e) {
			e.printStackTrace();
		} catch (IllegalAccessException e) {
			e.printStackTrace();
		}
		return null;
	}

}

@@ -314,16 +314,74 @@
 lass) %7B%0A
+%09%09//TODO Do something useful with any trapped exceptions.%0A
 %09%09try %7B%0A

Update DataEvent.java