public void onDelete(@Observes EntityDeleteEvent event) {
   if (!isValidEvent(event)) {
     return;
   }
   menu.invalidateCache();
 }
 public void onNew(@Observes EntityNewEvent event) {
   if (!isValidEvent(event)) {
     return;
   }
   menu.invalidateCache();
 }