if (connectorNames != null &&
!connectorNames.contains(storeContext.getConnectorName())) {
continue;
}
Configuration config =
persistentStore.getConnectorConfiguration(storeContext);
if (config != null) {
// Strip the often transient google properties (such as google work dir).
// Encrypt sensitive properties before including them in the output.
// Note that the order of operations is important here. We strip the
// google* properties first, then encrypt passwords, which adds back a
// googlePropertiesVersion - needed to decrypt the properties correctly.
config = new Configuration(encryptSensitiveProperties(
removeGoogleProperties(config.getMap())), config);
// Try to determine the connector version.
String typeVersion = null;
if (manager != null) {
try {
typeVersion = JarUtils.getJarVersion(manager.getConnectorType(
config.getTypeName()).getClass());
} catch (ConnectorTypeNotFoundException ctnfe) {
LOGGER.warning("Failed to locate ConnectorType for "
+ config.getTypeName());
}
}
// Add this connector to the list.
connectors.add(new ImportExportConnector(