for (Iterator it = l.iterator(); it.hasNext();)
for (Iterator it = get(alias).iterator(); it.hasNext();)
  public Key getPrivateKey(String alias, char[] password)      throws UnrecoverableKeyException  {    if (!containsAlias(alias))      {        return null;      }    List l = get(alias);    PasswordAuthenticatedEntry e1 = null;    PasswordEncryptedEntry e2 = null;    for (Iterator it = l.iterator(); it.hasNext();)      {        Entry e = (Entry) it.next();        if (e instanceof PasswordAuthenticatedEntry)          {            e1 = (PasswordAuthenticatedEntry) e;            break;          }      }    if (e1 == null)      {        return null;      }    try      {        e1.verify(password);      }    catch (Exception e)      {        throw new UnrecoverableKeyException("authentication failed");      }    for (Iterator it = e1.getEntries().iterator(); it.hasNext();)      {        Entry e = (Entry) it.next();        if (e instanceof PasswordEncryptedEntry)          {            e2 = (PasswordEncryptedEntry) e;            break;          }      }    if (e2 == null)      {        return null;      }    try      {        e2.decrypt(password);      }    catch (Exception e)      {        throw new UnrecoverableKeyException("decryption failed");      }    for (Iterator it = e2.get(alias).iterator(); it.hasNext();)      {        Entry e = (Entry) it.next();        if (e instanceof PrivateKeyEntry)          {            return ((PrivateKeyEntry) e).getKey();          }      }    return null;  }