public void routeNote(UserInterfaceNotification note, PendingTransaction transaction) {
   for (UserInterfaceHandler handler : handlers) {
     GeneratedRouter<ComponentNotificationRouter> router =
         InstrumentedRouterCache.getInstance().getNoteRouter(handler.getClass(), note.getClass());
     if (router != null) {
       router.getImplementation().route(note, handler, transaction);
     }
   }
 }
 public void routeAction(UserInterfaceDirective action) {
   for (UserInterfaceHandler handler : handlers) {
     GeneratedRouter<ComponentDirectiveRouter> router =
         InstrumentedRouterCache.getInstance()
             .getActionRouter(handler.getClass(), action.getClass());
     if (router != null) {
       router.getImplementation().route(action, handler);
     }
   }
 }