connInstanceTO.setId(connInstance.getId() != null
? connInstance.getId().longValue()
: 0L);
// retrieve the ConfigurationProperties.
ConfigurationProperties properties = connBundleManager.getConfigurationProperties(connInstance.getBundleName(),
connInstance.getVersion(), connInstance.getConnectorName());
BeanUtils.copyProperties(connInstance, connInstanceTO, IGNORE_PROPERTIES);
ConnConfPropSchema connConfPropSchema;
ConfigurationProperty configurationProperty;
Map<String, ConnConfProperty> connInstanceToConfMap = connInstanceTO.getConfigurationMap();
for (String propName : properties.getPropertyNames()) {
configurationProperty = properties.getProperty(propName);
if (!connInstanceToConfMap.containsKey(propName)) {
connConfPropSchema = new ConnConfPropSchema();
connConfPropSchema.setName(configurationProperty.getName());
connConfPropSchema.setDisplayName(configurationProperty.getDisplayName(propName));