code: @Override
    protected Configuration doConfigure(InputStream stream, String resourceName) throws HibernateException {
      try {
        ErrorLogger errorLogger = new ErrorLogger(resourceName);
        SAXReader reader = xmlHelper.createSAXReader(errorLogger, getEntityResolver());
        reader.setValidation(false);
        Document document = reader.read(new InputSource(stream));
        if (errorLogger.hasErrors()) { throw new MappingException("invalid configuration",
            errorLogger.getErrors().get(0)); }
        doConfigure(document);
      } catch (DocumentException e) {
        throw new HibernateException("Could not parse configuration: " + resourceName, e);
      } finally {
        try {
          stream.close();
        } catch (IOException ioe) {
          logger.error("Could not close input stream for {}", resourceName);
        }
      }
      return this;
    }
docs: Just disable xml file validation.<br>
  Speed up boostrap