// TODO stop using if-instanceof structure and start using object
// binding to a UShape builder.
if (shape == null) {
// if we could not find a plugin node, start testing ordinal nodes
if (newNode instanceof ContinuousNode) {
shape = new UShapeGMMNode(this, newNode,
(int) newNode.getPosition().x, (int) newNode
.getPosition().y, newNode.getWidth(), newNode
.getHeight());
} else if (newNode instanceof ProbabilisticNode) {
shape = new UShapeProbabilisticNode(this, newNode,