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);
}
}
((IFamixNodeRealizer) newNodeRealizer).initAttributes(entity);