class LoaderUtils {

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

  private  LoaderUtils();

}