private String getDefaultUsername() {
		int indexOfUserParameter = ArrayUtils.indexOf(commandLine.getArgs(), "--username");
		// if '--username' exists and it is not the last in the list of arguments, the next argument is the password
		if (indexOfUserParameter >= 0 && indexOfUserParameter < commandLine.getArgs().length - 1) {
			return commandLine.getArgs()[indexOfUserParameter + 1];
		}
		else {
			return Target.DEFAULT_USERNAME;
		}
	}
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