Event(BeforeSaveEvent<BaseEntity> event) {                 BaseEntity entity = event.getEntity();                 if (entity.getCreateDate() == null) {                     entity.setCreateDate(new Date());                 } else {                     entity.setUpdateDate(new Date());                 }             }         };     }  