':return: A dict with the options for a plugin. For example:
{ \'LICENSE_KEY\':\'AAAA\' }'

def get_plugin_options(self, plugin_type, plugin_name):

    plugin = ('w3af.plugins.%s.%s' % (plugin_type, plugin_name))
    plugin_instance = factory(plugin)
    options_list = plugin_instance.get_options()
    for section in self._config.sections():
        try:
            (_type, name) = section.split('.')
        except:
            pass
        else:
            if ((_type == plugin_type) and (name == plugin_name)):
                for option in self._config.options(section):
                    try:
                        value = self._config.get(section, option)
                    except KeyError:
                        msg = 'The    option    "%s"    is    unknown    for    the    "%s"    plugin.'
                        args = (option, plugin_name)
                        raise BaseFrameworkException((msg % args))
                    else:
                        options_list[option].set_value(value)
    return options_list
