Currently doing an migration from Apache Camel 2.25.x to 3.11.x and a simple expression using ognl is no longer working.
Below is an example expression
In the 2.25.x OgnlHelper.splitOgnl the above works because the 'parenthesisBracket' where detected with a boolean. In the 3.x code base the parenthesisBracket is detected using a int and the number of '(' and ')' are not the same. The reason that the brackets are not the same is because there are more or less brackets within the string being replaced.
It would be nice if the OgnlHelper would be capable of handling this situations.