public static final KeysetHandle generateNew(KeyTemplate keyTemplate)
      throws GeneralSecurityException {
    return generateNew(keyTemplate.toParameters());
  }
Generates a new {@link KeysetHandle} that contains a single fresh key generated according to
{@code keyTemplate}.

<p>Please do not use this function. Instead, inline it: replace calls with {@code
generateNew(t)} with {@code generateNew(t.toParameters())}.

@throws GeneralSecurityException if the key template is invalid.
java_src/src/main/java/com/google/crypto/tink/KeysetHandle.java