@Override
	public void afterPropertiesSet() throws Exception {
		if (controlFile != null) {
			if (StringUtils.hasText(controlFile.getHost())) {
				dbHost = controlFile.getHost();
			}
			if (StringUtils.hasText(controlFile.getDatabase())) {
				dbName = controlFile.getDatabase();
			}
			if (StringUtils.hasText(controlFile.getUser())) {
				dbUser = controlFile.getUser();
			}
			if (StringUtils.hasText(controlFile.getPassword())) {
				dbPassword = controlFile.getPassword();
			}
			if (controlFile.getPort() != null) {
				dbPort = controlFile.getPort();
			}
		}
		super.afterPropertiesSet();
	}
Factory bean for configuring a {@link DataSource}. Needed to use
both command-line props and a control file.

@author Janne Valkealahti
extensions/spring-xd-extension-gpfdist/src/main/java/org/springframework/xd/greenplum/support/GreenplumDataSourceFactoryBean.java