'Returns the corresponding datamodel given the frontend-type instance'

def lookup(self, fetype):

    try:
        return self._cache[fetype]
    except KeyError:
        pass
    handler = self._handlers[type(fetype)]
    model = self._cache[fetype] = handler(self, fetype)
    return model
