Hi,jandujar. 
Thank you very much to your commit. That is a good idea to add this api .
I  modify your code like:

        var decoDisplay, displayIndex;
        for (var i = 0; i < this._decoDisplayList.length; i++) {
            var locDecoDisplay = this._decoDisplayList[i];
            var locDisplay = locDecoDisplay.getDisplay();
            if ((typeof(locDisplay.getDisplayName) != "undefined") && name == locDisplay.getDisplayName()) {
                decoDisplay = locDecoDisplay;
                displayIndex = i;
                break;
            }
        }
        if (!decoDisplay) {) {
            return;
        }
        this._forceChangeDisplay = force;
        this._displayIndex = displayIndex;
        this.setCurrentDecorativeDisplay(decoDisplay);