JbiDocument.Jbi jbi = ((JbiDocument.Jbi)getDescriptor().getConfiguration());
// Check shared libraries
com.sun.java.xml.ns.jbi.ComponentDocument.Component.SharedLibrary[] libs = jbi.getComponent().getSharedLibraryArray();
for (int i = 0; i < libs.length; i++) {
String libName = libs[i].getDomNode().getFirstChild().getNodeValue();
Library library = getRegistry().getLibrary(libName);
if (library == null) {
throw new RegistryException("Component requires a missing shared library: " + libName);
}
library.addComponent(this);
}
// Get class path elements
this.classPathElements = Arrays.asList(jbi.getComponent().getComponentClassPath().getPathElementArray());
// Class loader delegation