code: protected ObjectManagerByteArrayOutputStream serialize(java.io.Serializable serializableObject)
                      throws ObjectManagerException
      {
          if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
              trace.entry(this,
                          cclass,
                          "serialize",
                          new Object[] { serializableObject });
  
          ObjectManagerByteArrayOutputStream byteArrayOutputStream = new ObjectManagerByteArrayOutputStream();
          try {
              java.io.ObjectOutputStream objectOutputStream = new java.io.ObjectOutputStream(byteArrayOutputStream);
              objectOutputStream.writeObject(serializableObject);
              objectOutputStream.close();
  
          } catch (java.io.IOException exception) {
              // No FFDC Code Needed.
              ObjectManager.ffdc.processException(this,
                                                  cclass,
                                                  "serialize",
                                                  exception,
                                                  "1:303:1.8");
              if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
                  trace.exit(this,
                             cclass,
                             "serialize",
                             exception);
              throw new PermanentIOException(this,
                                             exception);
          } // catch.
  
          if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
              trace.exit(this,
                         cclass,
                         "serialize",
                         new Object[] { byteArrayOutputStream });
          return byteArrayOutputStream;
      }
docs: Serialize's an Object by turning it into an array of bytes.
  
  @param serializableObject to serialize.
  @return ObjectManagerByteArrayOutputStream containing the serialized form of the Object.
  @throws ObjectManagerException