public Map < String , Boolean > getAdditionalJSReverse ( ) { Map < String , Boolean > result = new LinkedHashMap <> ( ) ; List < MenuEntry > parents = reverseFlattened ( ) . collect ( AdminToolMenuUtils . toListReversed ( ) ) ; parents . forEach ( menuEntry -> { if ( null != menuEntry . getAdditionalJS ( ) ) { result . putAll ( menuEntry . getAdditionalJS ( ) ) ; } } ) ; return result ; }
returns all additional js from this to upper menu item hierarchy beginning with the root .