_lastConnectionAttempt = now;
Screenname sn = new Screenname(getScreenName());
_aimSession = new DefaultAimSession(sn);
AimConnectionProperties props = new AimConnectionProperties(sn, getPassword());
AimConnection conn = _aimSession.openConnection(props);
conn.addStateListener(new AimStateHandler());
conn.connect();
}
else {
throw new ConnectedTooFastException("You attempted to connect repeatedly too quickly.");
}
}