Remove System.out.println statement.
Format classes.
Extend IEntity interface with Serializable interface.
Add CoreEvent pojo to save events to database.