public boolean isActiveInMenuTree ( MenuEntry activeMenu , MenuEntry actualEntry ) { return actualEntry . flattened ( ) . anyMatch ( entry -> checkForNull ( entry , activeMenu ) ? entry . getName ( ) . equals ( activeMenu . getName ( ) ) : false ) ; }
checks if actualEntry contains the activeMenuName in entry itself and its sub entries