public ConnInstanceTO getConnInstanceTO(final ConnInstance connInstance) {
ConnInstanceTO connInstanceTO = new ConnInstanceTO();
connInstanceTO.setId(connInstance.getId() == null ? 0L : connInstance.getId().longValue());
// retrieve the ConfigurationProperties
ConfigurationProperties properties = ConnIdBundleManager.getConfigurationProperties(
ConnIdBundleManager.getConnectorInfo(connInstance.getLocation(),
connInstance.getBundleName(), connInstance.getVersion(), connInstance.getConnectorName()));
BeanUtils.copyProperties(connInstance, connInstanceTO, IGNORE_PROPERTIES);
final Map<String, ConnConfProperty> connInstanceToConfMap = connInstanceTO.getConfigurationMap();
for (String propName : properties.getPropertyNames()) {
ConfigurationPropertyImpl configurationProperty =
(ConfigurationPropertyImpl) properties.getProperty(propName);
if (connInstanceToConfMap.containsKey(propName)) {
connInstanceToConfMap.get(propName).getSchema().setDisplayName(
configurationProperty.getDisplayName(propName));
} else {