newNodeRealizer = new FamixGroupNodeRealizer(nr);
} else {
if (entity instanceof FamixAttribute) {
newNodeRealizer = new FamixAttributeNodeRealizer(nr);
} else {
newNodeRealizer = new DefaultFamixNodeRealizer(nr);
}
}
((IFamixNodeRealizer) newNodeRealizer).initAttributes(entity);
graph.setRealizer(node, newNodeRealizer);
}