System.out.print("Authentication using '" +username+ "'/'" +password+ "'/" +client.getKey()+" : ");
final AuthenticationServiceAuthenticateUser auth = AuthenticationServiceAuthenticateUser.usingPlainTextPassword(username, password);
final Integer authenticatedUserId = client.call(auth);
System.out.println("ID " + authenticatedUserId);
final AuthenticationServiceAuthenticateForTemporaryKey keyAuth = new AuthenticationServiceAuthenticateForTemporaryKey(vendorKey, username, password);
final String temporaryKey = client.call(keyAuth);
System.out.println("Temporary key: " + temporaryKey);
}