throw new Exception("Error while parsing map file.");
throw new Exception("Error while parsing map file: "+e.toString());
    private Map unmarshal(InputStream in) throws IOException, Exception {        DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();        try {            DocumentBuilder builder = factory.newDocumentBuilder();            doc = builder.parse(in, xmlPath);        } catch (SAXException e) {            e.printStackTrace();            throw new Exception("Error while parsing map file.");        }        buildMap(doc);                return map;    }