code: public static String convertObjectToString(Object obj)
      {
          try {
              ByteArrayOutputStream writer = new ByteArrayOutputStream();
              ObjectOutputStream outStream = new ObjectOutputStream(writer);
              outStream.writeObject(obj);
              outStream.flush();
              writer.flush();
              String string = writer.toString(Constant.OBJECT_ENCODING);//Constants.STRING_ENCODING);
              writer.close();
              outStream.close();
              return string;
          } catch (IOException ex)    {
              ex.printStackTrace();   // Never
          }
          return null;
      }
docs: Convert this java object to a String.
  TODO This is expensive, I need to synchronize and use a static writer.
  @param obj The java object to convert.
  @return The object represented as a string.