try {
final FileWriter out = new FileWriter(classpath);
for ( final String jar : jars ) {
StreamSource jar_src;
try {
jar_src = res.resolveComponent(jar);
}
catch ( final NotExistException ex ) {
final String msg = "Inconsistent package descriptor, the JAR file is not in the package: ";
throw new PackageException(msg + jar, ex);
}