begin(orgService);
boolean success;
Object userHandler = orgService.getUserHandler();
if (passwordContext != null && userHandler instanceof ExtendedUserHandler)
{
PasswordEncrypter pe = new DigestPasswordEncrypter(username, passwordContext);
success = ((ExtendedUserHandler)userHandler).authenticate(username, password, pe);
}
else
{
success = ((UserHandler)userHandler).authenticate(username, password);