NEFNode[] nodes = new NEFNode[n];
NodeFactory nodeFactory=myEnsembleFactory.getNodeFactory();
for (int i = 0; i < n; i++) {
Node node = nodeFactory.make("node" + i);
if ( !(node instanceof NEFNode) ) {
throw new StructuralException("Nodes must be NEFNodes");
}
nodes[i] = (NEFNode) node;