write the descriptor class to a DOM tree and return it
Node prefetchDisabledNode = super.writeDescriptor(parent, nodeName,
prefetchDisabledDescriptor);
ArrayList methodDescs =
prefetchDisabledDescriptor.getConvertedMethodDescs();
if (!methodDescs.isEmpty()) {
MethodNode methodNode = new MethodNode();
for (Iterator methodIterator = methodDescs.iterator();
methodIterator.hasNext();) {
MethodDescriptor methodDesc =
(MethodDescriptor) methodIterator.next();
methodNode.writeQueryMethodDescriptor(prefetchDisabledNode,
RuntimeTagNames.QUERY_METHOD, methodDesc);
}
}
return prefetchDisabledNode;