code: private byte[] getCompressedBytes(Object sb,
                                        long lastAccessTime,
                                        Object exPC) throws IOException // d367572.7
      {
          final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
          if (isTraceOn && tc.isEntryEnabled())
              Tr.entry(tc, "getCompressedBytes", sb);
  
          // Serialize SessionBean to a byte[].
          ByteArrayOutputStream baos = new ByteArrayOutputStream(1024);
          GZIPOutputStream gout = new GZIPOutputStream(baos);
          ObjectOutputStream beanStream2 = createPassivationOutputStream(gout);
  
          if (isTraceOn && tc.isDebugEnabled()) //d204278.2
              Tr.debug(tc, "writing failover data with last access time set to: " + lastAccessTime);
  
          // First write the last access time.
          beanStream2.writeLong(lastAccessTime); //d204278.2
  
          // Write the persistence context
          beanStream2.writeObject(exPC);
  
          // Now the SFSB data.
          beanStream2.writeObject(sb);
          gout.finish();
          gout.close();
          beanStream2.close();
          byte[] bytes = baos.toByteArray();
          baos.close();
  
          if (isTraceOn && tc.isEntryEnabled())
              Tr.exit(tc, "getCompressedBytes");
  
          return bytes;
      }
docs: LIDB2018-1 added entire method.