import org.oliot.model.epcis.TransactionEventType;
import static org.oliot.epcis.serde.mongodb.MongoWriterUtil.*;
public class TransactionEventWriteConverter {
public BsonDocument convert(TransactionEventType transactionEventType, Integer gcpLength) {
BsonDocument dbo = new BsonDocument();
<BUG>if (transactionEventType.getBaseExtension() != null) {
EPCISEventExtensionType baseExtensionType = transactionEventType.getBaseExtension();
BsonDocument baseExtension = getBaseExtensionObject(baseExtensionType);
dbo.put("baseExtension", baseExtension);
}</BUG>
if (transactionEventType.getEventTime() != null)

import org.oliot.model.epcis.TransactionEventType;
import static org.oliot.epcis.serde.mongodb.MongoWriterUtil.*;
public class TransactionEventWriteConverter {
public BsonDocument convert(TransactionEventType transactionEventType, Integer gcpLength) {
BsonDocument dbo = new BsonDocument();
if (transactionEventType.getEventTime() != null)
