InvalidKeySpecException y = new InvalidKeySpecException(); y.initCause(x); throw y;
throw new InvalidKeySpecException(x.getMessage(), x);
  private static Method getValueOfMethod(Class clazz)      throws InvalidKeySpecException  {    try      {        Method result = clazz.getMethod("valueOf", new Class[] {byte[].class});        return result;      }    catch (NoSuchMethodException x)      {        InvalidKeySpecException y = new InvalidKeySpecException();        y.initCause(x);        throw y;      }  }