Program: 97365
Project: 97365
Buggy source:
public static ArtifactEvent getPersistEvent(RemotePersistEvent1 remEvent){
  try {
    ArtifactEvent event=new ArtifactEvent(BranchManager.getBranchByGuid(remEvent.getBranchGuid()));
    event.setNetworkSender(getNetworkSender(remEvent.getNetworkSender()));
    event.setTransactionId(remEvent.getTransactionId());
    for (    RemoteBasicGuidArtifact1 remGuidArt : remEvent.getArtifacts()) {
      EventModType modType=EventModType.getType(remGuidArt.getModTypeGuid());
      if (modType == null) {
        OseeLog.logf(Activator.class,Level.WARNING,"String_Node_Str",remGuidArt);
      }
 else {
        if (modType == EventModType.Modified) {
          event.getArtifacts().add(getEventModifiedBasicGuidArtifact(modType,remGuidArt));
        }
 else         if (modType == EventModType.ChangeType) {
          event.getArtifacts().add(getEventChangeTypeBasicGuidArtifact(modType,remGuidArt));
        }
 else {
          event.getArtifacts().add(getEventBasicGuidArtifact(modType,remGuidArt));
        }
      }
    }
    for (    RemoteBasicGuidRelation1 guidRel : remEvent.getRelations()) {
      EventBasicGuidRelation relEvent=getEventBasicGuidRelation(guidRel);
      if (relEvent == null) {
        OseeLog.logf(Activator.class,Level.WARNING,"String_Node_Str",guidRel);
      }
 else {
        event.getRelations().add(relEvent);
      }
    }
    for (    RemoteBasicGuidRelationReorder1 guidReorder : remEvent.getRelationReorders()) {
      event.getRelationOrderRecords().add(getDefaultBasicGuidRelationReorder(guidReorder));
    }
    return event;
  }
 catch (  OseeCoreException ex) {
    OseeLog.log(Activator.class,Level.SEVERE,"String_Node_Str",ex);
  }
  return null;
}

Fixed version (ground truth):
public static ArtifactEvent getPersistEvent(RemotePersistEvent1 remEvent){
  ArtifactEvent event=new ArtifactEvent(remEvent.getBranchGuid());
  event.setNetworkSender(getNetworkSender(remEvent.getNetworkSender()));
  event.setTransactionId(remEvent.getTransactionId());
  for (  RemoteBasicGuidArtifact1 remGuidArt : remEvent.getArtifacts()) {
    EventModType modType=EventModType.getType(remGuidArt.getModTypeGuid());
    if (modType == null) {
      OseeLog.logf(Activator.class,Level.WARNING,"String_Node_Str",remGuidArt);
    }
 else {
      if (modType == EventModType.Modified) {
        event.getArtifacts().add(getEventModifiedBasicGuidArtifact(modType,remGuidArt));
      }
 else       if (modType == EventModType.ChangeType) {
        event.getArtifacts().add(getEventChangeTypeBasicGuidArtifact(modType,remGuidArt));
      }
 else {
        event.getArtifacts().add(getEventBasicGuidArtifact(modType,remGuidArt));
      }
    }
  }
  for (  RemoteBasicGuidRelation1 guidRel : remEvent.getRelations()) {
    EventBasicGuidRelation relEvent=getEventBasicGuidRelation(guidRel);
    if (relEvent == null) {
      OseeLog.logf(Activator.class,Level.WARNING,"String_Node_Str",guidRel);
    }
 else {
      event.getRelations().add(relEvent);
    }
  }
  for (  RemoteBasicGuidRelationReorder1 guidReorder : remEvent.getRelationReorders()) {
    event.getRelationOrderRecords().add(getDefaultBasicGuidRelationReorder(guidReorder));
  }
  return event;
}