src/net/java/sip/communicator/impl/protocol/jabber/ServerStoredContactListJabberImpl.java
/**
     * Completes the identifier with the server part if no server part was
     * previously added.
     *
     * @param id the initial identifier as added by the user
     */
Completes the identifier with the server part if no server part was
previously added.

@param id the initial identifier as added by the user
Completes the identifier with the server part if no server part was previously added . @param id the initial identifier as added by the user
private EntityBareJid parseAddressString(String id)
        throws OperationFailedException
    {
        try
        {
            Jid temp = JidCreate.from(id);
            if (!temp.hasLocalpart())
            {
                AccountID accountID = jabberProvider.getAccountID();
                Jid accountJid = JidCreate.from(accountID.getUserID());
                return JidCreate.entityBareFrom(Localpart.from(id), accountJid.getDomain());
            }
            return temp.asEntityBareJidOrThrow();
        }
        catch (XmppStringprepException e)
        {
            throw new OperationFailedException("Could not parse id", 0, e);
        }
    }
private EntityBareJid parseAddressString ( String id ) throws OperationFailedException { try { Jid temp = JidCreate . from ( id ) ; if ( ! temp . hasLocalpart ( ) ) { AccountID accountID = jabberProvider . getAccountID ( ) ; Jid accountJid = JidCreate . from ( accountID . getUserID ( ) ) ; return JidCreate . entityBareFrom ( Localpart . from ( id ) , accountJid . getDomain ( ) ) ; } return temp . asEntityBareJidOrThrow ( ) ; } catch ( XmppStringprepException e ) { throw new OperationFailedException ( "Could not parse id" , 0 , e ) ; } }
Completes the identifier with the server part if no server part was
 previously added.
Completes the identifier with the server part if no server part was previously added .