def METHOD_NAME (self, adaptor_state, type) :
    if not type.lower () in (schema.lower() for schema in _ADAPTOR_SCHEMAS) :
        raise BadParameter \
                ("the MyProxy context adaptor only handles MyProxy contexts - duh!")
    self.get_api ().type = type
    return self.get_api ()