write the descriptor class to a DOM tree and return it
Node flushMethodNode = super.writeDescriptor(parent, nodeName,
flushMethodDescriptor);
ArrayList methodDescs = flushMethodDescriptor.getConvertedMethodDescs();
if (!methodDescs.isEmpty()) {
MethodNode methodNode = new MethodNode();
for (Iterator methodIterator = methodDescs.iterator();
methodIterator.hasNext();) {
MethodDescriptor methodDesc =
(MethodDescriptor) methodIterator.next();
// do not write out ejb-name element for the method
methodNode.writeDescriptor(flushMethodNode,
RuntimeTagNames.METHOD, methodDesc, null);
}
}
return flushMethodNode;