ex = nspe;
lastPaddingException = x;
  public static final Cipher getInstance(String transformation)    throws NoSuchAlgorithmException, NoSuchPaddingException  {    Provider[] providers = Security.getProviders();    NoSuchPaddingException ex = null;    String msg = "";    for (int i = 0; i < providers.length; i++)      {        try          {            return getInstance(transformation, providers[i]);          }        catch (NoSuchAlgorithmException nsae)          {            msg = nsae.getMessage();            ex = null;          }        catch (NoSuchPaddingException nspe)          {            ex = nspe;          }      }    if (ex != null)      {        throw ex;      }    throw new NoSuchAlgorithmException(msg);  }