private void persistState(File root,Map map){ try{ File file = FileUtil.getDirectoryPath(root,MONITOR_STATE_FILE);
private void persistState(File root, Map map) { try { File file = new File(environmentContext.getJbiRootDir(), root.getName() + ".xml");
    private void persistState(File root,Map map){        try{            File file = FileUtil.getDirectoryPath(root,MONITOR_STATE_FILE);            XmlPersistenceSupport.write(file, map);        }catch(IOException e){            log.error("Failed to persist file state to: "+root,e);        }    }