'Given the volume object get the associated volumetype.
Given the volume object get the associated volumetype and the
extra specs associated with it.
Based on the name of the config group, register the config file
:param volume: the volume object including the volume_type_id
:param volume_type_id: Optional override of volume.volume_type_id
:returns: dict -- the extra specs dict
:returns: string -- configuration file'

def _set_config_file_and_get_extra_specs(self, volume, volume_type_id=None):

    qos_specs = {}
    extra_specs = self.utils.get_volumetype_extra_specs(volume, volume_type_id)
    type_id = volume.volume_type_id
    if type_id:
        res = volume_types.get_volume_type_qos_specs(type_id)
        qos_specs = res['qos_specs']
    config_group = None
    if extra_specs:
        config_group = self.configuration.config_group
        if (extra_specs.get('replication_enabled') == '<is>    True'):
            extra_specs[utils.IS_RE] = True
    config_file = self._register_config_file_from_config_group(config_group)
    return (extra_specs, config_file, qos_specs)
