code: protected static String turnNullString2EmptyString(String str, String NullDefaultStr)
      {
          return (str == null) ? NullDefaultStr : str;
      }
docs: Helper method to convert a String object to its textual representation.
  If class is null, the <i>NullDefaultStr</i> is returned.