def METHOD_NAME(self, path, control_option):
    try:
        old_out = sys.stdout
        sys.stdout = StringIO()
        model_context = ModelContext(self._program_name, { })
        aliases = Aliases(model_context, WlstModes.OFFLINE, self.wls_version)
        printer = ModelHelpPrinter(model_context, aliases, self._logger)
        printer.print_model_help(path, control_option)
        sys.stdout.flush()
        text = sys.stdout.getvalue()
        sys.stdout = old_out
        return text
    except CLAException, e:
        self.fail(e.getLocalizedMessage())