GroupItem
is the type for a Group. GroupItem
is of type GenericItem
.
When using Rules DSL, sadly lambdas global lambdas are way more trouble than they are worth. They obfuscate errors, are not thread safe and usually end up causing more trouble than they are worth. There are several better techniques discussed in Design Pattern: DRY, How Not to Repeat Yourself in Rules DSL.
You need to add logging to figure out exactly what line is generating the error. If could be the filter, the forEach, or coming from inside the lambdas.