private static void callRightMethod(CommandLine cli) throws FileNotFoundException, IOException
    {
        Mode mode = getMode(cli);

        System.out.println("Starting with mode = " + mode);
        final String sourceDirectory = cli.getOptionValue('s');
        final String destDirectory = cli.getOptionValue('d');
        final String sourcePdfFileOrDir = cli.getOptionValue('f');
        System.out.println("Quellverzeichnis   = " + sourceDirectory);
        System.out.println("Zielverzeichnis    = " + destDirectory);
        System.out.println("PDF Dateiname      = " + sourcePdfFileOrDir);

        switch (mode)
        {
            case ZIPANDWRAP:
                PdfWrapperExecutor.zipAndWrap(sourceDirectory, destDirectory);
            break;
            case ZIP:
                PdfWrapperExecutor.zip(sourceDirectory, destDirectory);
            break;
            case UNWRAP:
                PdfWrapperExecutor.unwrap(sourcePdfFileOrDir);
            break;
            default:
                System.err.println("Mode wurde nicht erkannt");
            break;
        }
    }