* @param parent node for the DOM tree
* @param the descriptor to write
* @return the DOM tree top node
*/
public Node writeDescriptor(Node parent, ConnectorDescriptor descriptor) {
LicenseDescriptor licenseDesc = descriptor.getLicenseDescriptor();
if (licenseDesc != null) {
Node licenseNode = appendChild(parent,
ConnectorTagNames.LICENSE);
writeLocalizedDescriptions(licenseNode, licenseDesc);
appendTextChild(licenseNode, ConnectorTagNames.LICENSE_REQUIRED,
licenseDesc.getLicenseRequiredValue());
}
return parent;
}