/*
if(commonJARs.length==0)
throw new RuntimeException("No commonJARs have been defined");
*/
CommonClassLoader commonCL = CommonClassLoader.getInstance();
if(logger.isDebugEnabled())
logger.debug("Created {}", commonCL.getClass().getName());
if(logger.isTraceEnabled()) {
StringBuilder buffer = new StringBuilder();
for(int i=0; i<commonJARs.length; i++) {
if(i>0)
buffer.append("\n");
buffer.append(commonJARs[i].toExternalForm());
}
logger.trace("commonJARs=\n{}", buffer.toString());
}
commonCL.addCommonJARs(commonJARs);
final Thread currentThread = Thread.currentThread();
ClassLoader currentClassLoader = currentThread.getContextClassLoader();
ClassAnnotator annotator = new ClassAnnotator(ClassLoaderUtil.getCodebaseURLs(getCodebase()));