@Override public boolean hasKey(ECKey key) { lock.lock(); try { return basicKeyChain.hasKey(key); } finally { lock.unlock(); } }