private boolean loadConf(String pathName, String fileName){
		//entities should be initialized before configuration
		if(!ItemList.getInstance().isInitialized() || !UserList.getInstance().isInitialized()){
			Logger.getAnonymousLogger().log(Level.SEVERE, "Entities not initialized yet!");
			return false;
		}
		if(pathName != null && pathName.length() != 0){
			this.setConfPath(pathName);
		}
		if(fileName != null && fileName.length() != 0){
			this.setFileName(fileName);
		}
		this.configFile = new File(this.confPath + this.fileName);
		try {
    		this.confDoc = saxReader.read(this.configFile);
	    } catch (DocumentException e) {
	    	e.printStackTrace();
			Logger.getAnonymousLogger().log(Level.SEVERE, "Loading config file failed!");
			return false;
	    }
		boolean loaded = this.loadModels(confDoc);
		if(!loaded){
			Logger.getAnonymousLogger().log(Level.SEVERE, "Loading models failed!");
			return false;
		}
		return true;
	}