AuthenticatedToken token = getToken(stub);
// auth the user
String userToken;
try {
userToken = stub.authenticatePrincipalSimple(token, user, password);
} catch (InvalidAuthenticationException e) {
return null;
} catch (InvalidAuthorizationTokenException e) {
Debug.logError(e, module);
throw e;