def get_adapter_for_rest_model(self, rest_model):
class_signature = self.generate_signature(rest_model)<EOL>if class_signature not in self._rest_map:<EOL><INDENT>raise TypeError("<STR_LIT>" % class_signature)<EOL><DEDENT>return self._rest_map[class_signature]<EOL>
:param rest_model: instance of REST model
:return: the matching model adapter
:rtype: ModelAdapter