throw new PackageException("Invalid descriptor found in " + xar.getAbsolutePath());
}
// installing the xar into the expath repo
LOG.info("Installing package " + xar.getAbsolutePath());
final UserInteractionStrategy interact = new BatchUserInteraction();
final org.expath.pkg.repo.Package pkg = repo.getParentRepo().installPackage(xar, true, interact);
final ExistPkgInfo info = (ExistPkgInfo) pkg.getInfo("exist");
if (info != null && !info.getJars().isEmpty())
{ClasspathHelper.updateClasspath(broker.getBrokerPool(), pkg);}
broker.getBrokerPool().getXQueryPool().clear();