public boolean containsCertificate(@NotNull String alias){
  myReadLock.lock();
  try {
    return myKeyStore.containsAlias(alias);
  }
 catch (  KeyStoreException e) {
    LOG.error(e);
    return false;
  }
 finally {
    myReadLock.unlock();
  }
}

public boolean containsCertificate ( @ NotNull String alias ) { myReadLock . lock ( ) ; try { return myKeyStore . containsAlias ( alias ) ; } catch ( KeyStoreException e ) { LOG . error ( e ) ; return false ; } finally { myReadLock . unlock ( ) ; } }
check that underlying trust store contains certificate with specified alias .
