Entity templates and undo/redo

HashMap instead of Map?