@classmethod
def _validate_dictionary_name(cls, name, version=2):
    """
            Check if the given name is a valid dictionary name.
            Available dictionaries are DELAS, DELAF and DELACF.
            The first two dictionaries have two versions.
        """
    valid = {'DELAS': {(1): 'DELAS_PB', (2): 'DELAS_PB_v2'}, 'DELAF': {(1):
        'DELAF_PB', (2): 'DELAF_PB_v2'}, 'DELACF': {(1): 'DELACF_PB', (2):
        'DELACF_PB'}}
    error_msg = """
                        Valid names are DELAS, DELAF, and DELACF.
                    """
    name = name.upper()
    if name in valid:
        return valid[name][version]
    raise Exception(error_msg)
