Example usage for java.util.logging Level FINEST

List of usage examples for java.util.logging Level FINEST

Introduction

In this page you can find the example usage for java.util.logging Level FINEST.

Prototype

Level FINEST

To view the source code for java.util.logging Level FINEST.

Click Source Link

Document

FINEST indicates a highly detailed tracing message.

Usage

From source file:de.hofuniversity.iisys.neo4j.websock.query.encoding.safe.TSafeDeflateJsonQueryHandler.java

@Override
public WebsockQuery decode(ByteBuffer buff) throws DecodeException {
    WebsockQuery query = null;//from  w  ww.  j a v a 2  s . co m

    try {
        //decompress
        final byte[] incoming = buff.array();
        final Inflater inflater = new Inflater(true);
        inflater.setInput(incoming);

        int read = 0;
        int totalSize = 0;
        final List<byte[]> buffers = new LinkedList<byte[]>();

        final byte[] buffer = new byte[BUFFER_SIZE];
        read = inflater.inflate(buffer);
        while (read > 0) {
            totalSize += read;
            buffers.add(Arrays.copyOf(buffer, read));
            read = inflater.inflate(buffer);
        }

        final byte[] data = fuse(buffers, totalSize).array();
        final JSONObject obj = new JSONObject(new String(data));

        if (fDebug) {
            fTotalBytesIn += incoming.length;
            fLogger.log(Level.FINEST, "received compressed JSON message: " + incoming.length + " bytes\n"
                    + "total bytes received: " + fTotalBytesIn);
        }

        query = JsonConverter.fromJson(obj);
    } catch (Exception e) {
        e.printStackTrace();
        throw new DecodeException(buff, "failed to decode JSON", e);
    }

    return query;
}

From source file:org.apache.bval.jsr.xml.ValidationParser.java

@Privileged
private static ValidationConfigType parseXmlConfig(final String validationXmlFile) {
    InputStream inputStream = null;
    try {//w  ww .ja  v  a  2  s  .  com
        inputStream = getInputStream(getValidationXmlFile(validationXmlFile));
        if (inputStream == null) {
            log.log(Level.FINEST, String.format("No %s found. Using annotation based configuration only.",
                    validationXmlFile));
            return null;
        }

        log.log(Level.FINEST, String.format("%s found.", validationXmlFile));

        Schema schema = getSchema();
        JAXBContext jc = JAXBContext.newInstance(ValidationConfigType.class);
        Unmarshaller unmarshaller = jc.createUnmarshaller();
        unmarshaller.setSchema(schema);
        StreamSource stream = new StreamSource(inputStream);
        JAXBElement<ValidationConfigType> root = unmarshaller.unmarshal(stream, ValidationConfigType.class);
        return root.getValue();
    } catch (JAXBException e) {
        throw new ValidationException("Unable to parse " + validationXmlFile, e);
    } catch (IOException e) {
        throw new ValidationException("Unable to parse " + validationXmlFile, e);
    } finally {
        IOs.closeQuietly(inputStream);
    }
}

From source file:com.aipo.container.protocol.AipoDataServiceServlet.java

/**
 * Actual dispatch handling for servlet requests
 *///from w w  w .j  a  v a  2 s .c  o m
protected void executeRequest(HttpServletRequest servletRequest, HttpServletResponse servletResponse)
        throws IOException {
    if (LOG.isLoggable(Level.FINEST)) {
        LOG.finest("Handling restful request for " + servletRequest.getPathInfo());
    }

    setCharacterEncodings(servletRequest, servletResponse);

    SecurityToken token = getSecurityToken(servletRequest);
    if (token == null) {
        sendError(servletResponse, AipoErrorCode.TOKEN_EXPIRED);
        return;
    }
    if (token instanceof AipoOAuth2SecurityToken) {
        AipoOAuth2SecurityToken securityToken = (AipoOAuth2SecurityToken) token;
        String viewerId = securityToken.getViewerId();
        String[] split = viewerId.split(":");
        String orgId = split[0];
        String userId = split[1];

        String currentOrgId = Database.getDomainName();
        if (currentOrgId == null) {
            try {
                DataContext dataContext = Database.createDataContext(orgId);
                DataContext.bindThreadObjectContext(dataContext);
            } catch (Throwable t) {
                sendError(servletResponse, AipoErrorCode.INTERNAL_ERROR);
                return;
            }
        } else if (!currentOrgId.equals(orgId)) {
            sendError(servletResponse, AipoErrorCode.INTERNAL_ERROR);
            return;
        }

        TurbineUser tuser = turbineUserDbService.findByUsername(userId);
        if (tuser == null) {
            sendError(servletResponse, AipoErrorCode.INVALID_UER);
            return;
        }

    }

    HttpUtil.setCORSheader(servletResponse,
            containerConfig.<String>getList(token.getContainer(), "gadgets.parentOrigins"));

    handleSingleRequest(servletRequest, servletResponse, token);
}

From source file:gov.usgs.anss.query.MultiplexedMSOutputer.java

/**
 * This does the hard work of sorting - called as a shutdown hook.
 * TODO: consider recursion.//from  ww w  .ja  v a2  s  . co m
 * @param outputName name for the output file.
 * @param files list of MiniSEED files to multiplex.
 * @param cleanup flag indicating whether to cleanup after ourselves or not.
 * @throws IOException
 */
public static void multiplexFiles(String outputName, List<File> files, boolean cleanup, boolean allowEmpty)
        throws IOException {
    ArrayList<File> cleanupFiles = new ArrayList<File>(files);
    ArrayList<File> moreFiles = new ArrayList<File>();

    File outputFile = new File(outputName);
    File tempOutputFile = new File(outputName + ".tmp");

    do {
        // This checks if we're in a subsequent (i.e. not the first) iteration and if there are any more files to process...?
        if (!moreFiles.isEmpty()) {
            logger.info("more files left to multiplex...");
            FileUtils.deleteQuietly(tempOutputFile);
            FileUtils.moveFile(outputFile, tempOutputFile);

            cleanupFiles.add(tempOutputFile);
            moreFiles.add(tempOutputFile);
            files = moreFiles;
            moreFiles = new ArrayList<File>();
        }

        logger.log(Level.FINE, "Multiplexing blocks from {0} temp files to {1}",
                new Object[] { files.size(), outputName });
        BufferedOutputStream out = new BufferedOutputStream(FileUtils.openOutputStream(outputFile));

        // The hard part, sorting the temp files...
        TreeMap<MiniSeed, FileInputStream> blks = new TreeMap<MiniSeed, FileInputStream>(
                new MiniSeedTimeOnlyComparator());
        // Prime the TreeMap
        logger.log(Level.FINEST, "Priming the TreeMap with files: {0}", files);
        for (File file : files) {
            logger.log(Level.INFO, "Reading first block from {0}", file.toString());
            try {
                FileInputStream fs = FileUtils.openInputStream(file);
                MiniSeed ms = getNextValidMiniSeed(fs, allowEmpty);
                if (ms != null) {
                    blks.put(ms, fs);
                } else {
                    logger.log(Level.WARNING, "Failed to read valid MiniSEED block from {0}", file.toString());
                }
            } catch (IOException ex) {
                // Catch "Too many open files" i.e. hitting ulimit, throw anything else.
                if (ex.getMessage().contains("Too many open files")) {
                    logger.log(Level.INFO, "Too many open files - {0} deferred.", file.toString());
                    moreFiles.add(file);
                } else
                    throw ex;
            }
        }

        while (!blks.isEmpty()) {
            MiniSeed next = blks.firstKey();
            out.write(next.getBuf(), 0, next.getBlockSize());

            FileInputStream fs = blks.remove(next);
            next = getNextValidMiniSeed(fs, allowEmpty);
            if (next != null) {
                blks.put(next, fs);
            } else {
                fs.close();
            }
        }

        out.close();
    } while (!moreFiles.isEmpty());

    if (cleanup) {
        logger.log(Level.INFO, "Cleaning up...");
        for (File file : cleanupFiles) {
            FileUtils.deleteQuietly(file);
        }
    }
}

From source file:com.softenido.cafedark.io.CachedFile.java

private void followArchive(VirtualFile pf, InputStream in, int level) throws ArchiveException, IOException {
    if (in == null) {
        in = pf.getInputStream();/*from  w  w w. j av a  2 s  .co  m*/
    }

    ArchiveInputStream zip = asf.createArchiveInputStream(new BufferedInputStream(in));
    ArchiveEntry ent = null;
    try {
        while ((ent = zip.getNextEntry()) != null) {
            logger.log(Level.FINEST, "file={0}", ent.getName());
            VirtualFile child = new VirtualFile(pf, ent);
            visit(child, zip, level + 1);
        }
    } catch (Exception ex) {
        doException(pf.getPath(), ex);
    }
}

From source file:lineage.LineageEngine.java

public static void main(String[] args) {
    Options options = new Options();
    // Commands/*from   w w  w.j a  v  a2 s .  c o m*/
    options.addOption("build", false, "Construct the sample lineage trees");

    // Input/Output/Display
    options.addOption("i", true, "Input file path [required]");
    options.addOption("o", true, "Output file path (default: input file with suffix .trees.txt)");
    options.addOption("cp", false, "Input data represents cell prevalaence (CP) values");
    options.addOption("sampleProfile", false,
            "Input file contains the SSNV sample presence-absence profile (this will disable the default SSNV calling step)");
    options.addOption("n", "normal", true,
            "Normal sample column id in the list of samples, 0-based (e.g 0 is the first column) [required without -sampleProfile]");
    options.addOption("clustersFile", true, "SSNV clusters file path");
    options.addOption("s", "save", true, "Maximum number of output trees to save (default: 1)");
    options.addOption("showNetwork", "net", false, "Display the constraint network");
    options.addOption("showTree", "tree", true, "Number of top-ranking trees to display (default: 0)");

    // SSNV filtering / calling
    options.addOption("maxVAFAbsent", "absent", true,
            "Maximum VAF to robustly consider an SSNV as absent from a sample [required without -sampleProfile]");
    options.addOption("minVAFPresent", "present", true,
            "Minimum VAF to robustly consider an SSNV as present in a sample [required without -sampleProfile]");
    options.addOption("maxVAFValid", true, "Maximum allowed VAF in a sample (default: 0.6)");
    options.addOption("minProfileSupport", true,
            "Minimum number of robust SSNVs required for a group presence-absence profile to be labeled robust (default: 2)");

    // Network Construction / Tree Search
    options.addOption("minClusterSize", true,
            "Minimum size a cluster must have to be a considered a node in the network (default: 2)");
    options.addOption("minPrivateClusterSize", true,
            "Minimum size a private mutation cluster must have to be a considered a node in the network (default: 1)");
    options.addOption("minRobustNodeSupport", true,
            "Minimum number of robust SSNVs required for a node to be labeled robust during tree search: non-robust nodes can be removed from the network when no valid lineage trees are found (default: 2)");
    options.addOption("maxClusterDist", true,
            "Maximum mean VAF difference up to which two clusters can be collapsed (default: 0.2)");
    options.addOption("c", "completeNetwork", false,
            "Add all possible edges to the constraint network (default: private nodes are connected only to closest level parents; only nodes with no other parents are descendants of root)");
    options.addOption("e", true, "VAF error margin (default: 0.1)");
    options.addOption("nTreeQPCheck", true,
            "Number of top-ranking trees on which the QP consistency check is run, we have not seen this check fail in practice (default: 0, for best performance)");

    options.addOption("v", "verbose", false, "Verbose mode");
    options.addOption("h", "help", false, "Print usage");

    // display order
    ArrayList<Option> optionsList = new ArrayList<Option>();
    optionsList.add(options.getOption("build"));

    optionsList.add(options.getOption("i"));
    optionsList.add(options.getOption("o"));
    optionsList.add(options.getOption("cp"));
    optionsList.add(options.getOption("sampleProfile"));
    optionsList.add(options.getOption("n"));
    optionsList.add(options.getOption("clustersFile"));
    optionsList.add(options.getOption("s"));
    optionsList.add(options.getOption("net"));
    optionsList.add(options.getOption("tree"));
    optionsList.add(options.getOption("maxVAFAbsent"));
    optionsList.add(options.getOption("minVAFPresent"));
    optionsList.add(options.getOption("maxVAFValid"));
    optionsList.add(options.getOption("minProfileSupport"));
    optionsList.add(options.getOption("minClusterSize"));
    optionsList.add(options.getOption("minPrivateClusterSize"));
    optionsList.add(options.getOption("minRobustNodeSupport"));
    optionsList.add(options.getOption("maxClusterDist"));
    optionsList.add(options.getOption("c"));
    optionsList.add(options.getOption("e"));
    optionsList.add(options.getOption("nTreeQPCheck"));
    optionsList.add(options.getOption("v"));
    optionsList.add(options.getOption("h"));

    CommandLineParser parser = new BasicParser();
    CommandLine cmdLine = null;
    HelpFormatter hf = new HelpFormatter();
    hf.setOptionComparator(new OptionComarator<Option>(optionsList));
    try {
        cmdLine = parser.parse(options, args);
    } catch (ParseException e) {
        System.out.println(e.getMessage());
        hf.printHelp("lichee", options);
        System.exit(-1);
    }

    // Set-up input args
    Args params = new Args();
    if (cmdLine.hasOption("i")) {
        params.inputFileName = cmdLine.getOptionValue("i");
    } else {
        System.out.println("Required parameter: input file path [-i]");
        hf.printHelp("lichee", options);
        System.exit(-1);
    }
    if (cmdLine.hasOption("o")) {
        params.outputFileName = cmdLine.getOptionValue("o");
    } else {
        params.outputFileName = params.inputFileName + TREES_TXT_FILE_EXTENSION;
    }
    if (cmdLine.hasOption("clustersFile")) {
        params.clustersFileName = cmdLine.getOptionValue("clustersFile");
    }
    if (cmdLine.hasOption("sampleProfile")) {
        Parameters.INPUT_FORMAT = Format.SNV_WITH_PROFILE;
    }

    if (cmdLine.hasOption("n")) {
        params.normalSampleId = Integer.parseInt(cmdLine.getOptionValue("n"));
    } else if (!cmdLine.hasOption("sampleProfile")) {
        System.out.println("Required parameter: normal sample id [-n]");
        hf.printHelp("lichee", options);
        System.exit(-1);
    }
    if (cmdLine.hasOption("showTree")) {
        params.numShow = Integer.parseInt(cmdLine.getOptionValue("showTree"));
    }
    if (cmdLine.hasOption("showNetwork")) {
        params.showNetwork = true;
    }
    if (cmdLine.hasOption("s")) {
        params.numSave = Integer.parseInt(cmdLine.getOptionValue("s"));
    }

    if (cmdLine.hasOption("maxVAFAbsent")) {
        Parameters.MAX_VAF_ABSENT = Double.parseDouble(cmdLine.getOptionValue("maxVAFAbsent"));
    } else if (!cmdLine.hasOption("sampleProfile")) {
        System.out.println("Required parameter: -maxVAFAbsent");
        hf.printHelp("lichee", options);
        System.exit(-1);
    }
    if (cmdLine.hasOption("minVAFPresent")) {
        Parameters.MIN_VAF_PRESENT = Double.parseDouble(cmdLine.getOptionValue("minVAFPresent"));
    } else if (!cmdLine.hasOption("sampleProfile")) {
        System.out.println("Required parameter: -minVAFPresent");
        hf.printHelp("lichee", options);
        System.exit(-1);
    }
    if (cmdLine.hasOption("maxVAFValid")) {
        Parameters.MAX_ALLOWED_VAF = Double.parseDouble(cmdLine.getOptionValue("maxVAFValid"));
    }
    if (cmdLine.hasOption("minProfileSupport")) {
        Parameters.MIN_GROUP_PROFILE_SUPPORT = Integer.parseInt(cmdLine.getOptionValue("minProfileSupport"));
    }
    if (cmdLine.hasOption("minClusterSize")) {
        Parameters.MIN_CLUSTER_SIZE = Integer.parseInt(cmdLine.getOptionValue("minClusterSize"));
    }
    if (cmdLine.hasOption("minPrivateClusterSize")) {
        Parameters.MIN_PRIVATE_CLUSTER_SIZE = Integer.parseInt(cmdLine.getOptionValue("minPrivateClusterSize"));
    }
    if (cmdLine.hasOption("minRobustNodeSupport")) {
        Parameters.MIN_ROBUST_CLUSTER_SUPPORT = Integer
                .parseInt(cmdLine.getOptionValue("minRobustNodeSupport"));
    }
    if (cmdLine.hasOption("maxClusterDist")) {
        Parameters.MAX_COLLAPSE_CLUSTER_DIFF = Double.parseDouble(cmdLine.getOptionValue("maxClusterDist"));
    }
    if (cmdLine.hasOption("c")) {
        Parameters.ALL_EDGES = true;
    }
    if (cmdLine.hasOption("cp")) {
        Parameters.CP = true;
        Parameters.VAF_MAX = 1.0;
        Parameters.MAX_ALLOWED_VAF = 1.0;
    }
    if (cmdLine.hasOption("e")) {
        Parameters.VAF_ERROR_MARGIN = Double.parseDouble(cmdLine.getOptionValue("e"));
    }
    if (cmdLine.hasOption("nTreeQPCheck")) {
        Parameters.NUM_TREES_FOR_CONSISTENCY_CHECK = Integer.parseInt(cmdLine.getOptionValue("nTreeQPCheck"));
    }
    if (cmdLine.hasOption("h")) {
        new HelpFormatter().printHelp(" ", options);
    }
    // logger
    ConsoleHandler h = new ConsoleHandler();
    h.setFormatter(new LogFormatter());
    h.setLevel(Level.INFO);
    logger.setLevel(Level.INFO);
    if (cmdLine.hasOption("v")) {
        h.setLevel(Level.FINEST);
        logger.setLevel(Level.FINEST);
    }
    logger.addHandler(h);
    logger.setUseParentHandlers(false);

    if (cmdLine.hasOption("build")) {
        buildLineage(params);

    } else {
        new HelpFormatter().printHelp("lichee", options);
        System.exit(-1);
    }
}

From source file:de.hofuniversity.iisys.neo4j.websock.query.encoding.unsafe.DeflateJsonQueryHandler.java

@Override
public WebsockQuery decode(ByteBuffer buff) throws DecodeException {
    WebsockQuery query = null;//from w w  w  .  ja v  a2 s  .  co m

    try {
        //decompress
        final byte[] incoming = buff.array();
        fInflater.setInput(incoming);

        int totalSize = 0;

        int read = fInflater.inflate(fBuffer);
        while (read > 0) {
            totalSize += read;
            fBuffers.add(Arrays.copyOf(fBuffer, read));
            read = fInflater.inflate(fBuffer);
        }
        //TODO: directly add final slice?
        //      showed negative impact on performance

        final byte[] data = fuse(totalSize).array();

        final JSONObject obj = new JSONObject(new String(data));

        if (fDebug) {
            fTotalBytesIn += incoming.length;
            fLogger.log(Level.FINEST, "received compressed JSON message: " + incoming.length + " bytes\n"
                    + "total bytes received: " + fTotalBytesIn);
        }

        query = JsonConverter.fromJson(obj);
    } catch (Exception e) {
        e.printStackTrace();
        throw new DecodeException(buff, "failed to decode JSON", e);
    }

    return query;
}

From source file:com.caucho.hessian.client.HessianProxy.java

/**
 * Handles the object invocation.//from  ww  w . j  av  a 2  s  . c o m
 * 
 * @param proxy
 *            the proxy object to invoke
 * @param method
 *            the method to call
 * @param args
 *            the arguments to the proxy object
 */
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
    String mangleName;

    synchronized (_mangleMap) {
        mangleName = _mangleMap.get(method);
    }

    if (mangleName == null) {
        String methodName = method.getName();
        Class<?>[] params = method.getParameterTypes();
        // equals and hashCode are special cased
        if (methodName.equals("equals") && params.length == 1 && params[0].equals(Object.class)) {
            Object value = args[0];
            if (value == null || !Proxy.isProxyClass(value.getClass()))
                return Boolean.FALSE;

            Object proxyHandler = Proxy.getInvocationHandler(value);

            if (!(proxyHandler instanceof HessianProxy))
                return Boolean.FALSE;

            HessianProxy handler = (HessianProxy) proxyHandler;

            return new Boolean(_url.equals(handler.getURL()));
        } else if (methodName.equals("hashCode") && params.length == 0)
            return new Integer(_url.hashCode());
        else if (methodName.equals("getHessianType"))
            return proxy.getClass().getInterfaces()[0].getName();
        else if (methodName.equals("getHessianURL"))
            return _url.toString();
        else if (methodName.equals("toString") && params.length == 0)
            return "HessianProxy[" + _url + "]";

        if (!_factory.isOverloadEnabled())
            mangleName = method.getName();
        else
            mangleName = mangleName(method);

        synchronized (_mangleMap) {
            _mangleMap.put(method, mangleName);
        }
    }
    InputStream is = null;
    HessianConnection conn = null;

    try {
        if (log.isLoggable(Level.FINER))
            log.finer("Hessian[" + _url + "] calling " + mangleName);
        conn = sendRequest(mangleName, args);

        if (conn.getStatusCode() != 200) {
            throw new HessianProtocolException("http code is " + conn.getStatusCode());
        }

        is = conn.getInputStream();

        if (log.isLoggable(Level.FINEST)) {
            PrintWriter dbg = new PrintWriter(new LogWriter(log));
            HessianDebugInputStream dIs = new HessianDebugInputStream(is, dbg);

            dIs.startTop2();

            is = dIs;
        }

        AbstractHessianInput in;

        int code = is.read();

        if (code == 'H') {
            int major = is.read();
            int minor = is.read();

            in = _factory.getHessian2Input(is);

            Object value = in.readReply(method.getReturnType());

            return value;
        } else if (code == 'r') {
            int major = is.read();
            int minor = is.read();

            in = _factory.getHessianInput(is);

            in.startReplyBody();

            Object value = in.readObject(method.getReturnType());

            if (value instanceof InputStream) {
                value = new ResultInputStream(conn, is, in, (InputStream) value);
                is = null;
                conn = null;
            } else
                in.completeReply();

            return value;
        } else
            throw new HessianProtocolException("'" + (char) code + "' is an unknown code");
    } catch (HessianProtocolException e) {
        throw new HessianRuntimeException(e);
    } finally {
        try {
            if (is != null)
                is.close();
        } catch (Exception e) {
            log.log(Level.FINE, e.toString(), e);
        }

        try {
            if (conn != null)
                conn.destroy();
        } catch (Exception e) {
            log.log(Level.FINE, e.toString(), e);
        }
    }
}

From source file:com.couchbase.graph.CBVertex.java

/**
 * Iterate over an edge array by returning a list of edges
 * @param result//w  w w .  j  a v a 2 s . co  m
 * @param edgeArr
 * @param graph
 * @return
 * @throws DocNotFoundException 
 */
private List<Edge> edgesFromJsonArr(List<Edge> result, JsonArray edgeArr, Graph graph)
        throws DocNotFoundException {
    StopWatch sw = new StopWatch();
    sw.start();

    if (edgeArr != null) {
        //Multi-get instead of multiple gets
        Iterator<Edge> it = Observable.from(edgeArr.toList()).flatMap(key -> client.async().get(key.toString()))
                .map(doc -> CBEdge.fromJson(doc.content(), graph)).toBlocking().getIterator();

        return CollectionHelper.copyIterator(it);
    }

    sw.stop();

    LOG.log(Level.FINEST, "Time to get edges: {0}", sw.getTime());

    return result;
}

From source file:com.versusoft.packages.ooo.odt2daisy.addon.gui.UnoGUI.java

/**
 *
 * @param m_xContext Component context to be passed to a component via ::com::sun::star::lang::XSingleComponentFactory.
 * @param m_xFrame Frame object that serves as an "anchor" object where a component can be attached to.
 * @param isFullExport true if the content should be exported as Full DAISY, false if the content should be exported as DAISY XML (no audio).
 *///from   ww w  . j a v a  2s. c  om
public UnoGUI(XComponentContext m_xContext, XFrame m_xFrame, boolean isFullExport) {

    this.m_xContext = m_xContext;
    this.m_xFrame = m_xFrame;
    this.isFullExport = isFullExport;

    try {

        // Configuring logger
        logFile = File.createTempFile(LOG_FILENAME, null);
        fh = new FileHandler(logFile.getAbsolutePath());
        fh.setFormatter(new SimpleFormatter());
        Logger.getLogger("").addHandler(fh);
        Logger.getLogger("").setLevel(Level.FINEST);
        logger.fine("entering");

        // Configuring Locale
        OOoLocale = new Locale(UnoUtils.getUILocale(m_xContext));
        L10N_MessageBox_Warning_Title = java.util.ResourceBundle
                .getBundle("com/versusoft/packages/ooo/odt2daisy/addon/l10n/Bundle", OOoLocale)
                .getString("MessageBox_Warning_Title");
        L10N_No_Headings_Warning = java.util.ResourceBundle
                .getBundle("com/versusoft/packages/ooo/odt2daisy/addon/l10n/Bundle", OOoLocale)
                .getString("No_Headings_Warning");
        L10N_Incompatible_Images_Error = java.util.ResourceBundle
                .getBundle("com/versusoft/packages/ooo/odt2daisy/addon/l10n/Bundle", OOoLocale)
                .getString("Incompatible_Images_Error");
        L10N_Default_Export_Filename = java.util.ResourceBundle
                .getBundle("com/versusoft/packages/ooo/odt2daisy/addon/l10n/Bundle", OOoLocale)
                .getString("Default_Export_Filename");
        L10N_MessageBox_Error_Title = java.util.ResourceBundle
                .getBundle("com/versusoft/packages/ooo/odt2daisy/addon/l10n/Bundle", OOoLocale)
                .getString("MessageBox_Error_Title");
        L10N_DTD_Error_Message = java.util.ResourceBundle
                .getBundle("com/versusoft/packages/ooo/odt2daisy/addon/l10n/Bundle", OOoLocale)
                .getString("DTD_Error_Message");
        L10N_Line = java.util.ResourceBundle
                .getBundle("com/versusoft/packages/ooo/odt2daisy/addon/l10n/Bundle", OOoLocale)
                .getString("Line");
        L10N_Message = java.util.ResourceBundle
                .getBundle("com/versusoft/packages/ooo/odt2daisy/addon/l10n/Bundle", OOoLocale)
                .getString("Message");
        L10N_MessageBox_InternalError_Title = java.util.ResourceBundle
                .getBundle("com/versusoft/packages/ooo/odt2daisy/addon/l10n/Bundle", OOoLocale)
                .getString("MessageBox_InternalError_Title");
        L10N_Export_Aborted_Message = java.util.ResourceBundle
                .getBundle("com/versusoft/packages/ooo/odt2daisy/addon/l10n/Bundle", OOoLocale)
                .getString("Export_Aborted_Message");
        L10N_MessageBox_Info_Title = java.util.ResourceBundle
                .getBundle("com/versusoft/packages/ooo/odt2daisy/addon/l10n/Bundle", OOoLocale)
                .getString("MessageBox_Info_Title");
        L10N_Empty_Document_Message = java.util.ResourceBundle
                .getBundle("com/versusoft/packages/ooo/odt2daisy/addon/l10n/Bundle", OOoLocale)
                .getString("Empty_Document_Message");
        L10N_Validated_DTD_Message = java.util.ResourceBundle
                .getBundle("com/versusoft/packages/ooo/odt2daisy/addon/l10n/Bundle", OOoLocale)
                .getString("Validated_DTD_Message");
        L10N_PipelineLite_Update_Message = java.util.ResourceBundle
                .getBundle("com/versusoft/packages/ooo/odt2daisy/addon/l10n/Bundle", OOoLocale)
                .getString("PipelineLite_Update_Message");
        L10N_PipelineLite_Size_Error_Message = java.util.ResourceBundle
                .getBundle("com/versusoft/packages/ooo/odt2daisy/addon/l10n/Bundle", OOoLocale)
                .getString("PipelineLite_Size_Error_Message");
        L10N_PipelineLite_Extract_Message = java.util.ResourceBundle
                .getBundle("com/versusoft/packages/ooo/odt2daisy/addon/l10n/Bundle", OOoLocale)
                .getString("PipelineLite_Extract_Message");
        L10N_PipelineLite_Extract_Error_Message = java.util.ResourceBundle
                .getBundle("com/versusoft/packages/ooo/odt2daisy/addon/l10n/Bundle", OOoLocale)
                .getString("PipelineLite_Extract_Error_Message");
        L10N_PipelineLite_Exec_Error_Message = java.util.ResourceBundle
                .getBundle("com/versusoft/packages/ooo/odt2daisy/addon/l10n/Bundle", OOoLocale)
                .getString("PipelineLite_Exec_Error_Message");
        L10N_StatusIndicator_Step_1 = java.util.ResourceBundle
                .getBundle("com/versusoft/packages/ooo/odt2daisy/addon/l10n/Bundle", OOoLocale)
                .getString("StatusIndicator_Step_1");
        L10N_StatusIndicator_Step_2 = java.util.ResourceBundle
                .getBundle("com/versusoft/packages/ooo/odt2daisy/addon/l10n/Bundle", OOoLocale)
                .getString("StatusIndicator_Step_2");
        L10N_StatusIndicator_Step_3 = java.util.ResourceBundle
                .getBundle("com/versusoft/packages/ooo/odt2daisy/addon/l10n/Bundle", OOoLocale)
                .getString("StatusIndicator_Step_3");
        L10N_StatusIndicator_Step_4 = java.util.ResourceBundle
                .getBundle("com/versusoft/packages/ooo/odt2daisy/addon/l10n/Bundle", OOoLocale)
                .getString("StatusIndicator_Step_4");
        L10N_StatusIndicator_Step_5 = java.util.ResourceBundle
                .getBundle("com/versusoft/packages/ooo/odt2daisy/addon/l10n/Bundle", OOoLocale)
                .getString("StatusIndicator_Step_5");
        L10N_StatusIndicator_Step_6 = java.util.ResourceBundle
                .getBundle("com/versusoft/packages/ooo/odt2daisy/addon/l10n/Bundle", OOoLocale)
                .getString("StatusIndicator_Step_6");
        L10N_StatusIndicator_Step_7 = java.util.ResourceBundle
                .getBundle("com/versusoft/packages/ooo/odt2daisy/addon/l10n/Bundle", OOoLocale)
                .getString("StatusIndicator_Step_7");
        L10N_StatusIndicator_Step_8 = java.util.ResourceBundle
                .getBundle("com/versusoft/packages/ooo/odt2daisy/addon/l10n/Bundle", OOoLocale)
                .getString("StatusIndicator_Step_8");
        L10N_StatusIndicator_Step_9 = java.util.ResourceBundle
                .getBundle("com/versusoft/packages/ooo/odt2daisy/addon/l10n/Bundle", OOoLocale)
                .getString("StatusIndicator_Step_9");
        L10N_StatusIndicator_Step_10 = java.util.ResourceBundle
                .getBundle("com/versusoft/packages/ooo/odt2daisy/addon/l10n/Bundle", OOoLocale)
                .getString("StatusIndicator_Step_10");

        // Init Status Indicator
        xStatusIndicatorFactory = (XStatusIndicatorFactory) UnoRuntime
                .queryInterface(XStatusIndicatorFactory.class, m_xFrame);
        xStatusIndicator = xStatusIndicatorFactory.createStatusIndicator();

        // Query Uno Object
        xDoc = (XModel) UnoRuntime.queryInterface(XModel.class, m_xFrame.getController().getModel());

        parentWindow = xDoc.getCurrentController().getFrame().getContainerWindow();
        parentWindowPeer = (XWindowPeer) UnoRuntime.queryInterface(XWindowPeer.class, parentWindow);

        //DEBUG MODE
        //UnoAwtUtils.showInfoMessageBox(parentWindowPeer, L10N_MessageBox_Info_Title, "DEBUG MODE: "+logFile.getAbsolutePath());

    } catch (Exception ex) {
        logger.log(Level.SEVERE, null, ex);
    }

}