public FileHandler(String fileName, boolean emulator, PersistenceLayer perLayer) {
        
        if(LOG.isInfo()) {
            LOG.info("FileHandler.FileHandler()", "try to open "+fileName);
        }

        m_totalRead = 0;

        m_FileName = fileName;
        try {
            startPeriod();
            m_fconn = perLayer.openFile(fileName);
            logPeriod("connect", 0);
        } catch (Exception ex) {
            if(LOG.isError()) {
                LOG.error("FileHandler.FileHandler()", ex);
            }
        }
        if (!m_fconn.exists()) {
            if(LOG.isError()) {
                LOG.error("FileHandler.FileHandler()", "File not found: "+fileName);
            }
        }
    }