public Node writeDescriptor(Node parent, Descriptor descriptor) {
if (! (descriptor instanceof ConnectorDescriptor)) {
throw new IllegalArgumentException(getClass() + " cannot handle descriptors of type " + descriptor.getClass());
}
ConnectorDescriptor conDesc = (ConnectorDescriptor) descriptor;
conDesc.setSpecVersion(VERSION_15);
Node connectorNode = super.writeDescriptor(parent, conDesc);
appendTextChild(connectorNode, ConnectorTagNames.VENDOR_NAME, conDesc.getVendorName());
appendTextChild(connectorNode, ConnectorTagNames.EIS_TYPE, conDesc.getEisType());
appendTextChild(connectorNode, ConnectorTagNames.RESOURCEADAPTER_VERSION, conDesc.getResourceAdapterVersion());
//license info
LicenseNode licenseNode = new LicenseNode();
connectorNode = licenseNode.writeDescriptor(connectorNode, conDesc);