if (!loaded) { throw new IllegalStateException ("not loaded");
log.entering(this.getClass().getName(), "engineIsKeyEntry", alias);  ensureLoaded(); boolean result = privateKR.containsPublicKey(alias) || privateKR.containsPrivateKey(alias);  log.exiting(this.getClass().getName(), "engineIsKeyEntry", Boolean.valueOf(result)); return result;
  public boolean engineIsKeyEntry(String alias)  {    if (!loaded)      {        throw new IllegalStateException ("not loaded");      }    if (keyring == null)      {        return false;      }    if (!(keyring instanceof IPrivateKeyring))      {        return false;      }    return ((IPrivateKeyring) keyring).containsPublicKey(alias)           || ((IPrivateKeyring) keyring).containsPrivateKey(alias);  }