@@ -0,0 +1,803 @@
+%0Apackage galileo.event;%0A%0Aimport java.util.HashMap;%0Aimport java.util.Map;%0A%0A/**%0A * Provides a base implementation for mapping event identifiers to classes, and%0A * classes back to event identifiers.%0A *%0A * @author malensek%0A */%0Apublic abstract class EventMap %7B%0A%0A    protected final Map%3CInteger, Class%3C? extends Event%3E%3E%0A        intToClass = new HashMap%3C%3E();%0A    protected final Map%3CClass%3C? extends Event%3E, Integer%3E%0A        classToInt = new HashMap%3C%3E();%0A%0A    public EventMap() %7B %7D%0A%0A    protected void addMapping(int id, Class%3C? extends Event%3E clazz) %7B%0A        intToClass.put(id, clazz);%0A        classToInt.put(clazz, id);%0A    %7D%0A%0A    public Class%3C? extends Event%3E getClass(int id) %7B%0A        return intToClass.get(id);%0A    %7D%0A%0A    public int getInt(Class%3C?%3E clazz) %7B%0A        return classToInt.get(clazz);%0A    %7D%0A%7D%0A

Add abstract eventmap implementation