* @param XMLNode the sub-node adding the descriptor;
* @param descriptor the new descriptor
*/
protected void addNodeDescriptor(DeploymentDescriptorNode node) {
// nodes are added upon creation
ExtensionElementDescriptor dad = (ExtensionElementDescriptor) node.getDescriptor();
Iterator itr = dad.getElementNames();
// jump over first element;
if (itr.hasNext()) itr.next();
if (itr.hasNext() && !dad.hasAttributes()) {
descriptor.addElement(node.getXMLRootTag().getCompleteName(), dad);
} else {
descriptor.addElement(node.getXMLRootTag().getCompleteName(), dad.getElement(node.getXMLRootTag().getCompleteName()));
}
}