public class ReferenceNode extends AbstractNode {
// required for dynamic node creation
public ReferenceNode(Tree tree, Object graphObject, boolean getChildren) {
super(tree, graphObject, getChildren);
GraphObjectReference gn = (GraphObjectReference) getGraphObject();
// by default name is equal to class name
String n = (gn.getObject() == null) ? "" : gn.getObject().getClass()
.getName();
int k = n.lastIndexOf('.');
_name = n.substring(k + 1);
_icon = getIcon(gn.getObject());
_description = getDescription(gn.getObject());
}