public TreeMapperNode asTreeMapperNode(TreeElement parent) {
TreeMapperNode tmNode = null;
String name = getTreeMapperNodeName();
if (isFolder()) {
TreeElement element = null;
if (parent == null) {
element = TreeElement.ROOT_FACTORY.newRoot(name);
} else {
ElementCardinality cardinality = ElementCardinality.fromTreeNode(this);
element = parent.addElement(name, cardinality);