connectionUtils/src/main/java/com/ge/research/semtk/utility/Utility.java
public static void validateProperty(String propertyValue, String propertyName) throws Exception{
		if(propertyValue == null || propertyValue.trim().equals("null") || propertyValue.trim().isEmpty()){
			throw new Exception("Property " + propertyName + " is missing, empty, or null");	// throw an Exception
		}
	}
/**
	 * Validate a property.
	 * Confirm that it is not null, "null", or empty...and then return it. 
	 * 
	 * @param propertyValue the property value
	 * @param propertyName the property name
	 * @throw Exception if validation fails
	 */
Validate a property.
Confirm that it is not null, "null", or empty...and then return it.

@param propertyValue the property value
@param propertyName the property name
@throw Exception if validation fails
Validate a property . Confirm that it is not null " null " or empty ... and then return it . @param propertyValue the property value @param propertyName the property name @throw Exception if validation fails
public static void validateProperty(String propertyValue, String propertyName) throws Exception{
		if(propertyValue == null || propertyValue.trim().equals("null") || propertyValue.trim().isEmpty()){
			throw new Exception("Property " + propertyName + " is missing, empty, or null");	
		}
	}
public static void validateProperty ( String propertyValue , String propertyName ) throws Exception { if ( propertyValue == null || propertyValue . trim ( ) . equals ( "null" ) || propertyValue . trim ( ) . isEmpty ( ) ) { throw new Exception ( "Property " + propertyName + " is missing, empty, or null" ) ; } }
Validate a property.
Validate a property .
// throw an Exception