if (!dir.isDirectory()) {
throw new RuntimeException("No directory given for JAR: "
+ directory + ". (Stream: " + file + ")");
}
StepperSimpleLukasZIP stepper = new StepperSimpleLukasZIP();
stepper.goThroughDirectory(directory);
for (String s : stepper.getList()) {
addFileToJARStream(jos, s);
}
}