// Set name in pictogram model
if (pictogramElement instanceof ContainerShape) {
ContainerShape cs = (ContainerShape) pictogramElement;
for (Shape shape : cs.getChildren()) {
if (shape.getGraphicsAlgorithm() instanceof Text) {
Text text = (Text) shape.getGraphicsAlgorithm();
text.setValue(businessName);
return true;
}
if (shape.getGraphicsAlgorithm() instanceof MultiText) {
MultiText text = (MultiText) shape.getGraphicsAlgorithm();
text.setValue(businessName);
return true;
}
}
}