code: protected AjaxEventBehavior getBehavior(final Class<? extends Behavior> _class)
      {
          final SlideInPanel panel = (SlideInPanel) getParent();
          return panel.visitChildren(AjaxMenuItem.class, (_item,
           _visit) -> {
              final List<? extends Behavior> behaviors = _item.getBehaviors(_class);
              if (CollectionUtils.isNotEmpty(behaviors)) {
                  _visit.stop((AjaxEventBehavior) behaviors.get(0));
              } else {
                  _visit.stop();
              }
          });
      }
docs: Gets the behavior.
  
  @param _class the class
  @return the behavior