UINeoNode nodeUI = null;
if (node instanceof Network) {
nodeUI = new UINetwork((Network) node);
} else if (node instanceof Ensemble) {
if (node instanceof NEFEnsemble) {
nodeUI = new UINEFEnsemble((NEFEnsemble) node);
} else {
nodeUI = new UIEnsemble((Ensemble) node);
}
} else if (node instanceof Neuron) {
nodeUI = new UINeuron((Neuron) node);