class LoaderUtils {

  public static PutCall parsePutCall(String str) {
    switch (str.toUpperCase(Locale.ENGLISH)) {
      case "PUT":
      case "P":
        return PutCall.PUT;
      case "CALL":
      case "C":
        return PutCall.CALL;
      default:
        throw new IllegalArgumentException(
            "Unknown PutCall value, must be 'Put' or 'Call' but was '" + str + "'; " +
                "parser is case insensitive and also accepts 'P' and 'C'");
    }
  }

  private  LoaderUtils();

}