public XMLDocument loadConfiguration() throws XMLException {

		// check if a file is reachable
		if (!confFile.exists() || !confFile.canRead()) {
			throw new XMLException("File: " + confFile + "is unreachable!");
		}

		// check if a file is correct XML file
		if (!isValid()) {
			throw new XMLException("File: " + confFile + "isn't valid JBossESB configuration file");
		}

		return loadData(initializeDOMDocument(false));
	}