<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def validate_record_type(self, cls):
 """ Validate given record is acceptable. Traceback (most recent call last):
 ValueError: Unsupported record type "bad" """

        if self.record_types and cls not in self.record_types:
            raise ValueError('Unsupported record type "' + cls + '"')