private boolean isEclipseMap ( final URI mapFile ) throws DITAOTException { final DocumentBuilder builder = getDocumentBuilder ( ) ; Document doc ; try { doc = builder . parse ( mapFile . toString ( ) ) ; } catch ( final SAXException | IOException e ) { throw new DITAOTException ( "Failed to parse input map: " + e . getMessage ( ) , e ) ; } final Element root = doc . getDocumentElement ( ) ; return ECLIPSEMAP_PLUGIN . matches ( root ) ; }
Check whether ditamap is an Eclipse specialization .