if (connector.getVersion() == Version.V_16)
{
List<String> requiredWorkContexts = null;
boolean metadataComplete = false;
Connector newConnector = new Connector16Impl(moduleName, vendorName, eisType, resourceadapterVersion,
license, resourceadapter, requiredWorkContexts,
metadataComplete, description, displayNames, icons, id);
return newConnector.merge(connector);
}
else if (connector.getVersion() == Version.V_15)
{
Connector newConnector = new Connector15Impl(vendorName, eisType, resourceadapterVersion, license,
resourceadapter, description, displayNames, icons, id);
return newConnector.merge(connector);
}
else
throw new IllegalArgumentException("version= " + connector.getVersion().name());
}