Set ret = null;
Expect expect = new Expect(command);
expect.add(new ExpectStringHandler("username: ", username.toCharArray()));
expect.add(new ExpectPasswordHandler("password: ", password));
PrincipalHandler principalHandler = new PrincipalHandler(username);
expect.add(principalHandler);