public static Type getByCsvValue(String csvValue) {
            for (Type value : Type.values()) {
                if (value.getCsvValue().equals(csvValue)) {
                    return value;
                }
            }

            throw new IllegalArgumentException("The value'" + csvValue + "' is not a valid type.");
        }