':return: An OptionList with the options for a configurable object.'

def _get_x_settings(self, section, configurable_instance):

    configurable_options = configurable_instance.get_options()
    try:
        profile_options = self._config.options(section)
    except ConfigParser.NoSectionError:
        return configurable_options
    for option in profile_options:
        try:
            value = self._config.get(section, option)
        except KeyError:
            msg = 'The    option    "%s"    is    unknown    for    the    "%s"    section.'
            raise BaseFrameworkException((msg % (option, section)))
        else:
            configurable_options[option].set_value(value)
    return configurable_options
