code: public static String realToString(Package pkg, String type, Object value) {
          if (value == null)
              return "";
          com.centurylink.mdw.variable.VariableTranslator trans = getTranslator(pkg, type);
          if (trans instanceof DocumentReferenceTranslator)
              return ((DocumentReferenceTranslator)trans).realToString(value);
          else
              return trans.toString(value);
      }
docs: Serializes a runtime variable object to its string value.  Documents are expanded.
  @param pkg workflow package
  @param type variable type
  @param value object value
  @return serialized string value