def convert(self, request, response, data):
        """
        Performs the desired Conversion.

        :param request: The webob Request object describing the
                        request.
        :param response: The webob Response object describing the
                         response.
        :param data: The data dictionary returned by the prepare()
                     method.

        :returns: A string, the results of which are the desired
                  conversion.
        """

        if self.modifier.param is None or self.modifier.param == 'pid':
            return str(os.getpid())
        elif self.modifier.param == 'tid':
            return str(thread.get_ident())
        elif self.modifier.param == 'hextid':
            return hex(thread.get_ident())
        return self.modifier.param