code: public static String dataExport(Object data) throws IOException {
  
          if (CmsDataTypeUtil.isParseable(data.getClass())) {
              return CmsDataTypeUtil.format(data);
          }
          ByteArrayOutputStream bout = new ByteArrayOutputStream();
          ObjectOutputStream oout = new ObjectOutputStream(bout);
          oout.writeObject(data);
          oout.close();
          return new String(Base64.encodeBase64(bout.toByteArray()));
      }
docs: Returns a ready to export string representation of the given object.<p>
  
  For not parseable objects, base64 encoded string with the serialized object is generated.<p>
  
  @param data the object to export
  
  @return the string representation
  
  @throws IOException  if something goes wrong