long timestamp = pickBestTimestamp(msgTimestamp, fileTimestamp);
TrainMovementBody body = message.getBody();
String trainId = body.getTrainId();
String trainReportingNumber = trainId.substring(2, 6);
int trainClassCode = Integer.parseInt(trainReportingNumber.substring(0, 1));
ETrainClass trainClass = ETrainClass.getTrainClassForCode(trainClassCode);
if (!trainClass.isPassengerClass()) {
return;
}
TrainReportingNumberInstance instance = getTrainReportingNumberInstance(
trainReportingNumber, timestamp);
ETrainMovementMessageType msgType = ETrainMovementMessageType.getTypeForCode(Integer.parseInt(message.getHeader().getMsgType()));