public boolean parseFile(String filepath) {
    boolean result = true;
    logger.info("Read config file:"+filepath);
    DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
    DocumentBuilder db = null;
    try {
      db = dbf.newDocumentBuilder();
      Document doc = db.parse(filepath);
      result = fromDocument(doc);
    } catch (ParserConfigurationException e) {
      logger.error(e);
      result = false;
    } catch (SAXException e) {
      logger.error(e);
      result = false;
    } catch (IOException e) {
      logger.error(e);
      result = false;
    }    
    return result;
  }