public static Style getStyleForText(Diagram diagram) {
Style parentStyle = getStyleForClass(diagram);
Style s = findStyle(parentStyle, TEXT_ID);
if(s == null) {
IGaService gaService = Graphiti.getGaService();
s = gaService.createStyle(diagram, TEXT_ID);
s.setForeground(gaService.manageColor(diagram, CLASS_TEXT_FOREGROUND));
}
return s;
}