public static synchronized AccountManager getInstance ( XMPPConnection connection ) { AccountManager accountManager = INSTANCES . get ( connection ) ; if ( accountManager == null ) { accountManager = new AccountManager ( connection ) ; INSTANCES . put ( connection , accountManager ) ; } return accountManager ; }
Returns the AccountManager instance associated with a given XMPPConnection .