connectionUtils/src/main/java/com/ge/research/semtk/utility/Utility.java
public static void validatePropertiesAndExitOnFailure(TreeMap<String,String> properties,  HashSet<String> propertiesSkipValidation){
		LocalLogger.logToStdOut("----- PROPERTIES: --------------------");
		for(String propertyName : properties.keySet()){
			String propertyValue = properties.get(propertyName);
			LocalLogger.logToStdOut(propertyName + ": " + propertyValue);	// print to console
			if(!propertiesSkipValidation.contains(propertyName)){		// skip validation for some properties
				try {
					Utility.validateProperty(propertyValue, propertyName);	// validate
				} catch (Exception e) {
					LocalLogger.printStackTrace(e);
					LocalLogger.logToStdOut("============" + e.getMessage() + "...EXITING ============");	
					System.exit(1);					// kill the process
				} 
			}
		}
		LocalLogger.logToStdOut("--------------------------------------");
	}
/**
	 * Print all properties.  Validate all properties and exit if any are invalid.
	 * @param properties keys are property names, values are property values
	 * @param properties that should not be validated (e.g. they can be blank/missing/null)
	 */
Print all properties.  Validate all properties and exit if any are invalid.
@param properties keys are property names, values are property values
@param properties that should not be validated
Print all properties . Validate all properties and exit if any are invalid . @param properties keys are property names values are property values @param properties that should not be validated
public static void validatePropertiesAndExitOnFailure(TreeMap<String,String> properties,  HashSet<String> propertiesSkipValidation){
		LocalLogger.logToStdOut("----- PROPERTIES: --------------------");
		for(String propertyName : properties.keySet()){
			String propertyValue = properties.get(propertyName);
			LocalLogger.logToStdOut(propertyName + ": " + propertyValue);	
			if(!propertiesSkipValidation.contains(propertyName)){		
				try {
					Utility.validateProperty(propertyValue, propertyName);	
				} catch (Exception e) {
					LocalLogger.printStackTrace(e);
					LocalLogger.logToStdOut("============" + e.getMessage() + "...EXITING ============");	
					System.exit(1);					
				} 
			}
		}
		LocalLogger.logToStdOut("--------------------------------------");
	}
public static void validatePropertiesAndExitOnFailure ( TreeMap < String , String > properties , HashSet < String > propertiesSkipValidation ) { LocalLogger . logToStdOut ( "----- PROPERTIES: --------------------" ) ; for ( String propertyName : properties . keySet ( ) ) { String propertyValue = properties . get ( propertyName ) ; LocalLogger . logToStdOut ( propertyName + ": " + propertyValue ) ; if ( ! propertiesSkipValidation . contains ( propertyName ) ) { try { Utility . validateProperty ( propertyValue , propertyName ) ; } catch ( Exception e ) { LocalLogger . printStackTrace ( e ) ; LocalLogger . logToStdOut ( "============" + e . getMessage ( ) + "...EXITING ============" ) ; System . exit ( 1 ) ; } } } LocalLogger . logToStdOut ( "--------------------------------------" ) ; }
Print all properties.
Print all properties .
// print to console // skip validation for some properties // validate // kill the process