public void importKey(ECKey key){
  lock.lock();
  try {
    checkKeyEncryptionStateMatches(key);
    if (hasKey(key))     return;
    importKeyLocked(key);
    queueOnKeysAdded(ImmutableList.of(key));
  }
  finally {
    lock.unlock();
  }
}

public void importKey ( ECKey key ) { lock . lock ( ) ; try { checkKeyEncryptionStateMatches ( key ) ; if ( hasKey ( key ) ) return ; importKeyLocked ( key ) ; queueOnKeysAdded ( ImmutableList . of ( key ) ) ; } finally { lock . unlock ( ) ; } }
imports a key to the key chain . if key is present in the key chain , ignore it .
