if (this.libraries[i].containsNamespace(ns, null)) {
return true;
}
}
// PENDING: this is a terribly inefficient impl. Needs refactoring.
CompositeComponentTagLibrary toTest = new CompositeComponentTagLibrary(ns);
if (toTest.tagLibraryForNSExists(ns)) {
TagLibrary [] librariesPlusOne = new TagLibrary[libraries.length+1];
System.arraycopy(this.libraries, 0, librariesPlusOne,
0, libraries.length);
librariesPlusOne[libraries.length] =
new CompositeComponentTagLibrary(ns);
for (int i = 0; i < this.libraries.length; i++) {
libraries[i] = null;
}
libraries = librariesPlusOne;
return true;