class LoaderUtils {

  public static RollConvention parseRollConvention(String str) {
    return RollConvention.extendedEnum().findLenient(str)
        .orElseThrow(() -> new IllegalArgumentException(
            "Unknown RollConvention value, must be one of " +
                RollConvention.extendedEnum().lookupAllNormalized().keySet() +
                " but was '" + str + "'"));
  }

  private  LoaderUtils();

}