class ConvertRecord {

    public static Map<Integer, PropertyWithValue> convertCustomPropertiesById(List<CSVRecord> records){
        Map<Integer, PropertyWithValue> resultPropertiesById = new HashMap<>();
        for (CSVRecord record : records){
            if(! isValidPropertyRecord(record)){
                break;
            }
            Integer id = Integer.parseInt(record.get(0));
            String property = record.get(1).trim();
            String value = record.get(2).trim();
            resultPropertiesById.put(id, new PropertyWithValue(property, value));
        }
        return resultPropertiesById;
    }

    private  ConvertRecord();

}