InputStream in = null;
for(String ermPath:project.getErmPathList()) {
File file = new File(FileUtils.getAbsolutePath(ermPath));
try {
in =new BufferedInputStream(new FileInputStream(file));
ERDiagram diagram = persistent.load(in);
List<ERTable> erTableList = diagram.getDiagramContents().getContents().getTableSet().getList();
for(ERTable erTable:erTableList) {
map.put(erTable.getPhysicalName(), erTable);
}
} catch (FileNotFoundException e) {
logger.error("文件"+ermPath+"没有找到");