code: protected static LogRecord getUserLogRecord(java.io.DataInputStream dataInputStream,
                                                  ObjectManagerState objectManagerState)
                      throws ObjectManagerException {
          final String methodName = "getUserLogRecord";
          if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
              trace.entry(cclass,
                          methodName,
                          new Object[] { dataInputStream,
                                        objectManagerState });
          byte[] logRecordBytes;
          try {
              // LogRecord.type already read.      
              long serializedLogRecordLength = dataInputStream.readLong();
              // Now get the serialized form of the LogRecord.
              logRecordBytes = new byte[(int) serializedLogRecordLength];
              dataInputStream.read(logRecordBytes);
  
          } catch (java.io.IOException exception) {
              // No FFDC Code Needed.
              ObjectManager.ffdc.processException(cclass, methodName, exception, "1:94:1.8");
  
              if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
                  trace.exit(cclass,
                             methodName,
                             new Object[] { exception });
              throw new PermanentIOException("LogRecord",
                                             exception);
          } // catch (java.io.IOException exception).
  
          LogRecord logRecord = (LogRecord) deserialize(logRecordBytes, objectManagerState);
  
          if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
              trace.exit(cclass,
                         methodName,
                         logRecord);
          return logRecord;
      }
docs: Recover a user defined Log Record from a DataInputStream
  
  @param dataInputStream from which to construct the log record.
  @param objectManagerState into which the logRecord is loaded, if
  the logRecord references any Tokens they are referenced by this
  ObjectManager.
  @return LogRecord read from the dataInputstream.
  @throws ObjectManagerException