if (!ConfigMain.getBooleanParameter("pdfAsDownload")) {
/*
* -------------------------------- use contentserver api for creation of pdf-file --------------------------------
*/
CreatePdfFromServletThread pdf = new CreatePdfFromServletThread();
pdf.setMetsURL(metsTempFile.toURI().toURL());
pdf.setTargetFolder(new File(zielVerzeichnis));
pdf.setInternalServletPath(myBasisUrl);
myLogger.debug("Taget directory: " + zielVerzeichnis);
myLogger.debug("Using ContentServer2 base URL: " + myBasisUrl);
pdf.initialize(myProzess);
pdf.start();
} else {
GetMethod method = null;
try {
/*