@Override
	public void afterPropertiesSet() throws Exception {
		if (override != null) {
			friendlyName = override;
			return;
		}
		String vendorName = JdbcUtils.commonDatabaseName(JdbcUtils.extractDatabaseMetaData(dataSource,
				"getDatabaseProductName").toString());
		if (!vendorToFriendlyNames.containsKey(vendorName)) {
			throw new BeanInitializationException(String.format(
					"Detected database vendor name %s but no mapping found for it in %s", vendorName,
					vendorToFriendlyNames));
		}
		friendlyName = vendorToFriendlyNames.get(vendorName);
	}
A factory bean that returns a friendly string name from database metadata. Default names match those used by
JdbcMessageStore's init scripts, but can be overriden by {@link #setMappings(Map)}. Also, one can always provide an
{@link #setOverride(String) override} (presumably user-provided).

@author Eric Bottard
spring-xd-dirt/src/main/java/org/springframework/xd/dirt/jdbc/util/DatabaseVendorFriendlyNameFactoryBean.java