builder.setEffect(getConditionAsEffect(consequence.getCondition()));
ExtensionsStructure extensions = consequence.getExtensions();
if (extensions != null) {
Object obj = extensions.getAny();
if (obj instanceof OneBusAwayConsequence) {
OneBusAwayConsequence obaConsequence = (OneBusAwayConsequence) obj;
if (obaConsequence.getDiversionPath() != null)
builder.setDetourPath(obaConsequence.getDiversionPath());
}
}
if (builder.hasDetourPath() || builder.hasEffect())
serviceAlert.addConsequence(builder);
}