AspectNode electrical2 = new AspectNode("electrical");
AspectSubTreeNode visualization = new AspectSubTreeNode(
AspectTreeType.VISUALIZATION_TREE);
SphereNode sphere = new SphereNode("purkinje");
visualization.addChild(sphere);
runtime.addChild(hhcell);
runtime.addChild(purkinje);
hhcell.getAspects().add(electrical);
purkinje.getAspects().add(electrical2);
electrical.setParent(hhcell);
electrical2.setParent(purkinje);
ConnectionNode con1 = new ConnectionNode("Connection_1");
con1.setEntityInstancePath(hhcell.getInstancePath());
con1.setType(ConnectionType.TO);
con1.setParent(hhcell);
con1.setName("Connection1");
hhcell.getConnections().add(con1);
VisualObjectReferenceNode visObj = new VisualObjectReferenceNode("Vis");
visObj.setAspectInstancePath(electrical.getInstancePath());
visObj.setVisualObjectId(sphere.getId());
TextMetadataNode text = new TextMetadataNode("Text");
text.setValue(new DoubleValue(2));
URLMetadataNode url = new URLMetadataNode("URL");
url.setValue(new DoubleValue(2));