private Category searchCategory ( String breadcrumb ) { return model . getFlatCategoriesLst ( ) . stream ( ) . filter ( cat -> cat . getBreadcrumb ( ) . equals ( breadcrumb ) ) . findAny ( ) . orElse ( null ) ; }
Searches in all categories for the category that matches a breadcrumb .