DXFParser parser = ParserBuilder.createDefaultParser();
Parser parser = ParserBuilder.createDefaultParser();
    public void processFile(String source, String result) {        if (result == null) {            result = source.substring(0,                    source.toLowerCase().lastIndexOf(".dxf"));        }        DXFParser parser = ParserBuilder.createDefaultParser();        try {            parser.parse(new FileInputStream(source), DXFParser.DEFAULT_ENCODING);            DXFDocument doc = parser.getDocument();            splitLayers(doc, result);        } catch (Exception e) {            e.printStackTrace();        }    }