protected static void createFinalArguments(String hadoopMapredHome, String command, List<String> sqoopArguments,
	                                           boolean provideConnect, Map<String, String> configOptions,
	                                           List<String> finalArguments) {
		finalArguments.add(command);
		if (provideConnect) {
			finalArguments.add("--connect=" + configOptions.get(JDBC_URL_KEY));
			if (configOptions.containsKey(JDBC_USERNAME_KEY) && configOptions.get(JDBC_USERNAME_KEY) != null) {
				finalArguments.add("--username=" + configOptions.get(JDBC_USERNAME_KEY));
			}
			if (configOptions.containsKey(JDBC_PASSWORD_KEY) && configOptions.get(JDBC_PASSWORD_KEY) != null) {
				finalArguments.add("--password=" + configOptions.get(JDBC_PASSWORD_KEY));
			}
		}
		if (command.toLowerCase().startsWith("import") || command.toLowerCase().startsWith("export") ||
				command.toLowerCase().startsWith("create")) {
			finalArguments.add("--hadoop-mapred-home=" + hadoopMapredHome);
		}
		finalArguments.addAll(sqoopArguments);
	}
Class for running Sqoop tool.

@since 1.1
@author Thomas Risberg
extensions/spring-xd-extension-sqoop/src/main/java/org/springframework/xd/sqoop/SqoopRunner.java