@Override
public MailboxSession login(String userid, String passwd, Logger log) throws BadCredentialsException, MailboxException {
if (login(userid, passwd)) {
return createSession(userid, passwd, log, SessionType.User);
} else {
throw new BadCredentialsException();
}
}