code: public static String getNullAsValue(String input, String value) {
      return (input == null) ? value : input;
    }
docs: Returns the specified string value if input is null, otherwise returns the original input
  string untouched.
  
  @param input
  String to be evaluated
  @param value
  String to substitute if input is null