src/main/java/org/s2n/ddt/bean/UtlConf.java
private static void updateProps(final Properties in, boolean clr) {
		//mainProps,mainProps.getProperty("ddtHomeDir", "/data/ddt")
		final String homeDir = mainProps.getProperty("ddtHomeDir", "/data/ddt");
		Enumeration e = in.propertyNames();
		String userHome1 = System.getProperty("user.home");
		logger.info("From system userHome :" + userHome1);
		if(userHome1 == null || userHome1.length() == 0){
			userHome1 = "./";
		}
		final String userHome =  userHome1;
		logger.warn("Final using userHome :" + userHome1);
		System.out.println("Final using userHome :" + userHome1);
		logger.warn("Final homeDir :" + homeDir);
		while (e.hasMoreElements()) {
			String key = (String) e.nextElement();
			String value = in.getProperty(key);
			//whats the point of the if contains, if its there replace it.
			//if (value.contains("{conf}")) {
			//	value = value.replace("{conf}", replacementString);
			//}
			value = value.replace("{conf}", homeDir);
			value = value.replace("{home}", homeDir);
			value = value.replace("~", userHome1);
			in.put(key, value);
		}
		// for re init, only discard current if new set was loaded successfully.
		if(clr){
			mainProps.clear();
		}
		mainProps.putAll(in);
	}
/**
	 * replaces special strings like  {conf} {home} entry of the properties' values with ddtHome data
	 * and ~ with user.home
	 */
replaces special strings like  {conf} {home} entry of the properties' values with ddtHome data
and ~ with user.home
replaces special strings like { conf } { home } entry of the properties ' values with ddtHome data and ~ with user . home
private static void updateProps(final Properties in, boolean clr) {
		final String homeDir = mainProps.getProperty("ddtHomeDir", "/data/ddt");
		Enumeration e = in.propertyNames();
		String userHome1 = System.getProperty("user.home");
		logger.info("From system userHome :" + userHome1);
		if(userHome1 == null || userHome1.length() == 0){
			userHome1 = "./";
		}
		final String userHome =  userHome1;
		logger.warn("Final using userHome :" + userHome1);
		System.out.println("Final using userHome :" + userHome1);
		logger.warn("Final homeDir :" + homeDir);
		while (e.hasMoreElements()) {
			String key = (String) e.nextElement();
			String value = in.getProperty(key);
			value = value.replace("{conf}", homeDir);
			value = value.replace("{home}", homeDir);
			value = value.replace("~", userHome1);
			in.put(key, value);
		}
		if(clr){
			mainProps.clear();
		}
		mainProps.putAll(in);
	}
private static void updateProps ( final Properties in , boolean clr ) { final String homeDir = mainProps . getProperty ( "ddtHomeDir" , "/data/ddt" ) ; Enumeration e = in . propertyNames ( ) ; String userHome1 = System . getProperty ( "user.home" ) ; logger . info ( "From system userHome :" + userHome1 ) ; if ( userHome1 == null || userHome1 . length ( ) == 0 ) { userHome1 = "./" ; } final String userHome = userHome1 ; logger . warn ( "Final using userHome :" + userHome1 ) ; System . out . println ( "Final using userHome :" + userHome1 ) ; logger . warn ( "Final homeDir :" + homeDir ) ; while ( e . hasMoreElements ( ) ) { String key = ( String ) e . nextElement ( ) ; String value = in . getProperty ( key ) ; value = value . replace ( "{conf}" , homeDir ) ; value = value . replace ( "{home}" , homeDir ) ; value = value . replace ( "~" , userHome1 ) ; in . put ( key , value ) ; } if ( clr ) { mainProps . clear ( ) ; } mainProps . putAll ( in ) ; }
replaces special strings like  {conf} {home} entry of the properties' values with ddtHome data
 and ~ with user.home
replaces special strings like { conf } { home } entry of the properties ' values with ddtHome data and ~ with user . home
//mainProps,mainProps.getProperty("ddtHomeDir", "/data/ddt") //whats the point of the if contains, if its there replace it. //if (value.contains("{conf}")) { //	value = value.replace("{conf}", replacementString); //} // for re init, only discard current if new set was loaded successfully.