public synchronized void createContactListAsync(String name,Collection<Contact> contacts,boolean isDefault) throws ImException {
  checkState();
  if (getContactList(name) != null) {
    throw new ImException(ImErrorInfo.CONTACT_LIST_EXISTS,"Contact list already exists");
  }
  if (mContactLists.isEmpty()) {
    isDefault=true;
  }
  doCreateContactListAsync(name,contacts,isDefault);
}

public synchronized void createContactListAsync ( String name , Collection < Contact > contacts , boolean isDefault ) throws ImException { checkState ( ) ; if ( getContactList ( name ) != null ) { throw new ImException ( ImErrorInfo . CONTACT_LIST_EXISTS , "Contact list already exists" ) ; } if ( mContactLists . isEmpty ( ) ) { isDefault = true ; } doCreateContactListAsync ( name , contacts , isDefault ) ; }
create a contact list with specified name and contacts asynchronously , and whether it is to be created as the default contact list .
