/* User must have username and password specified */
assert user.getUsername() != null;
assert user.getPassword() != null;
/* authenticate with the server */
AuthService authService = ServiceFactory.getAuthService();
try {
authService.login(context, user.getUsername(), user._getPlaintextPassword());
} catch (Exception e) {
throw new RuntimeException(e);
}
}