src/reference/builder.js
function loadListByName(listName, args, skipCache = false) {
    checkIsString('listName', listName);
    const configurationElement = getElement(listName);
    if (typeof configurationElement !== 'function') {
        throw new Error(`You are trying to load the reference list: ${listName} which does not have a list configure.`);
    }
    let now = _getTimeStamp();
    if (cache[listName] && (now - cache[listName].timeStamp) < getCacheDuration() && !skipCache) {
        _deletePromiseWaiting(listName);
        //console.info('data served from cache', listName, cache[listName].value);
        return Promise.resolve(cache[listName].value);
    }
    //Call the service, the service must return a promise.
    return configurationElement(args)
        .then((data) => {
            return _cacheData(listName, data)
        });
}
function loadListByName(listName, args, skipCache = false) {
    checkIsString('listName', listName);
    const configurationElement = getElement(listName);
    if (typeof configurationElement !== 'function') {
        throw new Error(`You are trying to load the reference list: ${listName} which does not have a list configure.`);
    }
    let now = _getTimeStamp();
    if (cache[listName] && (now - cache[listName].timeStamp) < getCacheDuration() && !skipCache) {
        _deletePromiseWaiting(listName);
        //console.info('data served from cache', listName, cache[listName].value);
        return Promise.resolve(cache[listName].value);
    }
    //Call the service, the service must return a promise.
    return configurationElement(args)
        .then((data) => {
            return _cacheData(listName, data)
        });
}
function loadListByName ( listName , args , skipCache = false ) { checkIsString ( 'listName' , listName ) ; const configurationElement = getElement ( listName ) ; if ( typeof configurationElement !== 'function' ) { throw new Error ( ` ${ listName } ` ) ; } let now = _getTimeStamp ( ) ; if ( cache [ listName ] && ( now - cache [ listName ] . timeStamp ) < getCacheDuration ( ) && ! skipCache ) { _deletePromiseWaiting ( listName ) ; //console.info('data served from cache', listName, cache[listName].value); return Promise . resolve ( cache [ listName ] . value ) ; } //Call the service, the service must return a promise. return configurationElement ( args ) . then ( ( data ) => { return _cacheData ( listName , data ) } ) ; }
Load a reference with its list name. It calls the service which must have been registered. 
Load a list by name.
@param {string} listName - The name of the list to load.
@param {object} args     - Argument to provide to the function.
Load a reference with its list name . It calls the service which must have been registered . Load a list by name .