*/
public void addJSFLibrary(final JSFLibraryInternalReference library) {
// Library is added only if it does not exist in registry
if (library != null && getJSFLibraryRegistry().getJSFLibraryByID(library.getID()) == null) {
// Add the library working copy into workspace registry.
JSFLibrary jsfLib = library.getLibrary();
getJSFLibraryRegistry().addJSFLibrary(jsfLib.getWorkingCopy());
// Add library into the collection depends on its type.
List list = (library.isImplementation() ?
getJSFImplementationLibraries() :
getJSFComponentLibraries());