code: public static PlainChangesLogImpl createCopy(List<ItemState> items, String pairId, PlainChangesLog originalLog)
     {
        if (originalLog.getSession() != null)
        {
           return new PlainChangesLogImpl(items, originalLog.getSession().getId(), originalLog.getEventType(), pairId,
              originalLog.getSession());
        }
        return new PlainChangesLogImpl(items, originalLog.getSessionId(), originalLog.getEventType(), pairId, null);
     }
docs: Creates a new instance of {@link PlainChangesLogImpl} by copying metadata from originalLog
  instance with Items and PairID provided. Metadata will be copied excluding PairID.
  
  @param items
  @param originalLog
  @return