rem: var libraryState = EchoScriptLibraryManager.getState(serviceId) 
add: var libraryState = EchoScriptLibraryManager.getState(serviceId); 
context: EchoServerMessage.isLibraryLoadComplete = function() {    // 'complete' flag is used to set status to 'failed' in the event of an exception.    var complete = false;    try {        var librariesElement = EchoServerMessage.messageDocument.getElementsByTagName("libraries").item(0);        var libraryElements = librariesElement.getElementsByTagName("library");                var returnValue = true;        for (var i = 0; i < libraryElements.length; ++i) {            var serviceId = libraryElements.item(i).getAttribute("service-id");            var libraryState = EchoScriptLibraryManager.getState(serviceId)            if (libraryState != EchoScriptLibraryManager.STATE_LOADED                     && libraryState != EchoScriptLibraryManager.STATE_INSTALLED) {                // A library that requires immediate loading is not yet available.                returnValue = false;                break;            }        }        complete = true;        return returnValue;    } finally {        if (!complete) {            EchoServerMessage.status = EchoServerMessage.STATUS_PROCESSING_FAILED;        }    }};
meta: 498	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/498/a49acebc7aa45e77483b2b5b474665cb38e20858/ClientEngine.js/buggy/src/webrender/java/nextapp/echo2/webrender/resource/ClientEngine.js