@Override
public void execute(RuleMatch match, RuleElement element, RutaStream stream, InferenceCrowd crowd) {
Type casType = stream.getJCas().getCasType(RutaColoring.type);
FeatureStructure newAnnotationFS = stream.getCas().createFS(casType);
RutaColoring coloring = null;
if (newAnnotationFS instanceof RutaColoring) {
coloring = (RutaColoring) newAnnotationFS;
RutaBlock parent = element.getParent();
coloring.setBgColor(bgcolor.getStringValue(parent, match, element, stream));
coloring.setFgColor(fgcolor.getStringValue(parent, match, element, stream));
coloring.setSelected(selected.getBooleanValue(parent, match, element, stream));
coloring.setTargetType(type.getType(parent).getName());
coloring.addToIndexes();
}
}