class WeightClassificationUtils {

    public static WeightClass verticalWeightToClass(String verticalClass) {

        if (verticalClass.contains("2")) {
            return WeightClass.GOOD;
        } else if (verticalClass.contains("1")) {
            return WeightClass.OK;
        } else if (verticalClass.contains("0")) {
            return WeightClass.BAD;
        }

        throw new RuntimeException("CANNOT CAST verticalClass string to ENUM");
    }

}