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

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