public GWTMailbox login( String username, String password ) throws Exception {
try {
LoginContext context = new LoginContext( MailboxLoginModule.class.getSimpleName(),
new MailboxCallbackHandler( username, password ) );
context.login();
// if no exception thrown, login was successful
SessionManager.createSession( context.getSubject() );