You could easily pass a collection of labels to the LabelProvider and get it to output from there. Or another class or service which provides labels. It’s just a question of application architecture.
Does this help?
Please login first to submit.