BS-6749: use a more complex Conditions to wait that the children nodes
after expansion of the parent are available. Extract the Condition as a
class in util plugin