private String getDefaultPassword() {
		int indexOfPasswordParameter = ArrayUtils.indexOf(commandLine.getArgs(), "--password");
		// if '--password' exists and it is not the last in the list of arguments, the next argument is the password
		if (indexOfPasswordParameter >= 0) {
			if (indexOfPasswordParameter < commandLine.getArgs().length - 1) {
				return commandLine.getArgs()[indexOfPasswordParameter + 1];
			}
			else {
				return Target.DEFAULT_SPECIFIED_PASSWORD;
			}
		}
		else {
			return Target.DEFAULT_SPECIFIED_PASSWORD;
		}
	}
Initialize the default {@link Target} for the XD Admin Server. It will use
the constants {@link Target#DEFAULT_HOST}, {@link Target#DEFAULT_PORT}
and {@link Target#DEFAULT_SCHEME}.

Alternatively, the host and port can also be set using the {@code --host}
and {@code --port} command line parameters.
spring-xd-shell/src/main/java/org/springframework/xd/shell/command/ConfigCommands.java