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

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