if (configFile != null && configFile.exists() && configFile.isFile()) { ReportDesignHandle handle = sessionHandle .openDesign(configFileName);
if ( configFile != null && configFile.exists( ) && configFile.isFile( ) ) { handle = sessionHandle.openDesign( configFileName );
	private Map getConfigVars() {		HashMap configVars = new HashMap();		String reportDesignName = this.getFileUri();		// get design config file name		String configFileName = reportDesignName.replaceFirst(				SUFFIX_DESIGN_FILE, SUFFIX_DESIGN_CONFIG);		try {			// Generate the session handle			SessionHandle sessionHandle = SessionHandleAdapter.getInstance()					.getSessionHandle();			File configFile = new File(configFileName);			// if config file existed, then delete it			if (configFile != null && configFile.exists()					&& configFile.isFile()) {				ReportDesignHandle handle = sessionHandle						.openDesign(configFileName);				Iterator it = handle.configVariablesIterator();				while (it.hasNext()) {					ConfigVariableHandle configVar = (ConfigVariableHandle) it							.next();					if (configVar != null && configVar.getName() != null) {						configVars.put(configVar.getName(), configVar								.getValue());					}				}			}		} catch (DesignFileException e) {			// TODO Auto-generated catch block			e.printStackTrace();		}		return configVars;	}