public String getFieldName(Integer field) {
        switch (field) {
            case 1:
                return channel.field1;
            case 2:
                return channel.field2;
            case 3:
                return channel.field3;
            case 4:
                return channel.field4;
            case 5:
                return channel.field5;
            case 6:
                return channel.field6;
            case 7:
                return channel.field7;
            case 8:
                return channel.field8;
        }
        throw new IllegalArgumentException("Invalid field.");
    }