Creates a new GPTool for the toolbox.

def create_tool(self, task):
        """
        Creates a new GPTool for the toolbox.


        """
        gp_tool = dict(taskName=task.name,
                       taskDisplayName=task.display_name,
                       taskDescription=task.description,
                       canRunInBackground=True,
                       taskUri=task.uri)

        gp_tool['execute'] = self._execute_template.substitute(gp_tool)
        gp_tool['parameterInfo'] = param_builder.create_param_info(task.parameters,
                                                                   self.parameter_map)
        gp_tool['updateParameter'] = param_builder.create_update_parameter(task.parameters,
                                                                           self.parameter_map)
        gp_tool['preExecute'] = param_builder.create_pre_execute(task.parameters,
                                                                 self.parameter_map)
        gp_tool['postExecute'] = param_builder.create_post_execute(task.parameters,
                                                                   self.parameter_map)
        return self._tool_template.substitute(gp_tool)