ExtendedMetaData metadata = ExtendedMetaData.INSTANCE;
EAttributeImpl extensionAttributeBgColor = (EAttributeImpl) metadata .demandFeature(
"http://www.omg.org/spec/BPMN/non-normative/color", "background-color", false, false);
SimpleFeatureMapEntry extensionEntryBgColor = new SimpleFeatureMapEntry(extensionAttributeBgColor,
backgroundColor);
shape.getBpmnElement().getAnyAttribute().add(extensionEntryBgColor);
EAttributeImpl extensionAttributeBorderColor = (EAttributeImpl) metadata .demandFeature(
"http://www.omg.org/spec/BPMN/non-normative/color", "border-color", false, false);
SimpleFeatureMapEntry extensionEntryBorderColor = new SimpleFeatureMapEntry(extensionAttributeBorderColor,
borderColor);
shape.getBpmnElement().getAnyAttribute().add(extensionEntryBorderColor);
EAttributeImpl extensionAttributeColor = (EAttributeImpl) metadata .demandFeature(
"http://www.omg.org/spec/BPMN/non-normative/color", "color", false, false);
SimpleFeatureMapEntry extensionEntryColor = new SimpleFeatureMapEntry(extensionAttributeColor,
fontColor);
shape.getBpmnElement().getAnyAttribute().add(extensionEntryColor);
} else {
_logger.warn("Unable to find color information for shape: " + shape.getBpmnElement().getId());
}