IMapNode parent = getParent();
if(parent == null || !(parent instanceof MapNodeObject)){
throw new RuntimeException("Attributes must have Objects to hold them");
}
String labelname = ((MapNodeObject)parent).getLabel();
new MapNodeAttribute(parent,labelname,type,attributeName,value);
}