@Override
	public void setEnvironment(Map<String, String> env) {
		String javaHome = System.getenv("JAVA_HOME");
		if (StringUtils.hasText(javaHome)) {
			env.put("JAVA_HOME", javaHome);
		}
		env.put("SQOOP_CONF_DIR", environment.getProperty(XD_CONFIG_HOME));
		if (StringUtils.hasText(libjars)) {
			env.put("XD_MODULE_LIBJARS", libjars);
		}
	}
Class that sets environment variables for Sqoop
extensions/spring-xd-extension-sqoop/src/main/java/org/springframework/xd/sqoop/SqoopEnvironmentProvider.java