public ClassLoader loadSQLJJar(Session session, TableName jarName) {
if (jarName == null)
return getClass().getClassLoader();
SQLJJar sqljJar = ais(session).getSQLJJar(jarName);
if (sqljJar == null)
throw new NoSuchSQLJJarException(jarName);
long currentVersion = sqljJar.getVersion();
synchronized (classLoaders) {
VersionedItem<ClassLoader> entry = classLoaders.get(jarName);
if ((entry != null) && (entry.version == currentVersion))
return entry.item;