FileUtils.deleteQuietly(anchor);
}
return 28;
}
}
CopyProcess form = new CopyProcess();
form.setProzessVorlage(vorlage);
form.metadataFile = dir.getAbsolutePath() + File.separator + processTitle;
form.Prepare();
form.getProzessKopie().setTitel(processTitle.substring(0, processTitle.length() - 4));
if (form.testTitle()) {
if (digitalCollection == null) {
List<String> collections = new ArrayList<String>();
form.setDigitalCollections(collections);
} else {
List<String> col = new ArrayList<String>();
col.add(digitalCollection);
form.setDigitalCollections(col);
}
form.OpacAuswerten();
try {
Prozess p = form.NeuenProzessAnlegen2();
if (p.getId() != null) {
// copy image files to new directory
File images = new File(dir.getAbsoluteFile() + File.separator + processTitle.substring(0, processTitle.length() - 4)
+ File.separator);