code: private static String blankToNull(String value) {
  		if (value != null) {
  			value = value.trim();
  			if (value.equals("")) {
  				value = null;
  			}
  		}
  		return value;
  	}
docs: Transform empty string (only white spaces) into null, handles null.