// Memorize the info for further usage
conn.setLoginInfo( login );
try {
// Connecting to the zone
if ( conn.connect() ) {
// The connection to the zone is in process
// The connection will be establish successfully once
// the Connected event is receive in processEvent method.
// Memorize the connection object for further usage