code: public static byte[] serialize(FastSerializable object) throws IOException {
          FastSerializer out = new FastSerializer();
          object.writeExternal(out);
          return out.getBBContainer().b().array();
      }
docs: Get the byte version of object. This is a shortcut utility method when
  you only need to serialize a single object.
  
  @return The byte array representation for <code>object</code>.