AbstractFamixEntity entity = rootGraph.getFamixEntity(node);
NodeRealizer nr = graph.getRealizer(node);
NodeRealizer newNodeRealizer = null;
if (nr instanceof GroupNodeRealizer) {
newNodeRealizer = new FamixGroupNodeRealizer(nr);
} else {
if (entity instanceof FamixAttribute) {
newNodeRealizer = new FamixAttributeNodeRealizer(nr);
} else {
newNodeRealizer = new DefaultFamixNodeRealizer(nr);