public static String getStringFromObject(Object obj)
	  {
	    if (obj == null)
	      return "";
	    if ((obj instanceof Boolean))
	      return ((Boolean)obj).booleanValue() ? "Y" : "";
	    if ((obj instanceof Date))
	      return getDateLocalString((Date)obj);
	    if ((obj instanceof Number))
	      return getNumberString((Number)obj);
	    if ((obj instanceof Collection)) {
	      Collection col = (Collection)obj;
	      Iterator it = col.iterator();
	      String result = "";
	      while (it.hasNext()) {
	        Object o = it.next();
	        if (o != null) {
	          result = new StringBuilder().append(result).append(getStringFromObject(o)).toString();
	        }
	        if (it.hasNext()) {
	          result = new StringBuilder().append(result).append("\n").toString();
	        }
	      }
	      return result;
	    }
	    return getStringWithoutNull(obj.toString());
	  }