}
public DefaultMutableTreeNode generateNewProfileElementTree(String peName){
DefaultMutableTreeNode peRoot = null;
ProfileElement theProfileElement = new EnumeratedProfileElement(new Profile());
peRoot = new DefaultMutableTreeNode(peName);
DefaultMutableTreeNode theCommentsRoot = new DefaultMutableTreeNode("Comments");
DefaultMutableTreeNode theComments = new DefaultMutableTreeNode(theProfileElement.getComments());
theCommentsRoot.add(theComments);
DefaultMutableTreeNode theDesc = new DefaultMutableTreeNode(theProfileElement.getDescription());
DefaultMutableTreeNode theDescRoot = new DefaultMutableTreeNode("Description");
theDescRoot.add(theDesc);
DefaultMutableTreeNode theID = new DefaultMutableTreeNode(theProfileElement.getID());
DefaultMutableTreeNode theIDRoot = new DefaultMutableTreeNode("ID");
theIDRoot.add(theID);
DefaultMutableTreeNode theMO = new DefaultMutableTreeNode(new Integer(theProfileElement.getMaxOccurrence()).toString());
DefaultMutableTreeNode theMORoot = new DefaultMutableTreeNode("Max Occurence");
theMORoot.add(theMO);
DefaultMutableTreeNode theSynonyms = new DefaultMutableTreeNode("Synonyms");
for(Iterator i2 = theProfileElement.getSynonyms().iterator(); i2.hasNext(); ){
String theSynonym = (String)i2.next();
DefaultMutableTreeNode sNode = new DefaultMutableTreeNode(theSynonym);
theSynonyms.add(sNode);
}
DefaultMutableTreeNode theType = new DefaultMutableTreeNode(theProfileElement.getType());
DefaultMutableTreeNode theTypeRoot = new DefaultMutableTreeNode("Type");
theTypeRoot.add(theType);
DefaultMutableTreeNode theUnit = new DefaultMutableTreeNode(theProfileElement.getUnit());
DefaultMutableTreeNode theUnitRoot = new DefaultMutableTreeNode("Unit");
theUnitRoot.add(theUnit);
peRoot.add(theCommentsRoot);
peRoot.add(theDescRoot);