@Override
		public void initialize(ConfigurableApplicationContext applicationContext) {
			String dataSourceUrl = applicationContext.getEnvironment()
					.resolvePlaceholders(SPRING_DATASOURCE_URL_OPTION);
			String embeddedHsql = applicationContext.getEnvironment().resolvePlaceholders(SINGLENODE_EMBEDDED_HSQL);
			Assert.notNull(dataSourceUrl, "At least one datasource (for batch) must be set.");
			Assert.notNull(embeddedHsql,
					"The property singlenode.embeddedHsql must be set for singlenode. Default is true.");
			if (dataSourceUrl.contains("hsql") && embeddedHsql.equals("true")) {
				applicationContext.getEnvironment().addActiveProfile(HsqlServerApplication.HSQLDBSERVER_PROFILE);
			}
		}
Initializer class that activates {@link HsqlServerApplication.HSQLDBSERVER_PROFILE} if the underlying datasource
is hsql and embedded hsqldb is opted.
spring-xd-dirt/src/main/java/org/springframework/xd/dirt/server/singlenode/SingleNodeApplication.java