protected Sheet process(LogRecord rec) {
ProjectOp projectOp = ProjectOp.valueOf(rec);
if (projectOp != null) {
Union2<ProjectOp, TechOp> union = Union2.createFirst(projectOp);
List<Union2<ProjectOp, TechOp>> list = Collections.singletonList(union);
return new Sheet(list);
}
TechOp techOp = TechOp.valueOf(rec);
if (techOp != null) {
Union2<ProjectOp, TechOp> union = Union2.createSecond(techOp);
List<Union2<ProjectOp, TechOp>> list = Collections.singletonList(union);
return new Sheet(list);
}
return Sheet.EMPTY;
}